Package-level declarations

TODO

Types

Link copied to clipboard
data class Authorization(val type: String, val value: String)
Link copied to clipboard

Supported HTTP responses status.

Link copied to clipboard
data class ContentType(val mediaType: MediaType, val boundary: String? = null, val charset: Charset? = null, val q: Double? = null)
Link copied to clipboard
data class Cookie(val name: String, val value: String, val maxAge: Long = -1, val secure: Boolean = false, val path: String = "/", val httpOnly: Boolean = true, val domain: String = "", val sameSite: Boolean = true, val expires: Instant? = null)
Link copied to clipboard
data class CustomStatus(val code: Int, val type: HttpStatusType = when (code) { in 100..199 -> INFORMATION in 200..299 -> SUCCESS in 300..399 -> REDIRECTION in 400..499 -> CLIENT_ERROR in 500..599 -> SERVER_ERROR else -> throw IllegalArgumentException(INVALID_CODE_ERROR_MESSAGE + code) }) : HttpStatus
Link copied to clipboard
data class FormParameter(val name: String, val values: List<String>) : HttpField
Link copied to clipboard
data class FormParameters(val httpFields: Map<String, FormParameter>) : Map<String, FormParameter>
Link copied to clipboard
data class Header(val name: String, val values: List<String>) : HttpField
Link copied to clipboard
data class Headers(val httpFields: Map<String, Header>) : Map<String, Header>
Link copied to clipboard
interface HttpBase
Link copied to clipboard
Link copied to clipboard
interface HttpField

TODO Used in headers, query parameters and form parameters

Link copied to clipboard
interface HttpMessage : HttpBase
Link copied to clipboard
enum HttpMethod : Enum<HttpMethod>

Supported HTTP methods.

Link copied to clipboard
data class HttpPart(val name: String, val body: Any, val headers: Headers = Headers(), val contentType: ContentType? = null, val size: Long = -1L, val submittedFileName: String? = null) : HttpBase
Link copied to clipboard

Supported HTTP protocols.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
interface HttpStatus

Supported HTTP responses status.

Link copied to clipboard
Link copied to clipboard

Supported HTTP responses status.

Link copied to clipboard
data class QueryParameter(val name: String, val values: List<String>) : HttpField
Link copied to clipboard
data class QueryParameters(val httpFields: Map<String, QueryParameter>) : Map<String, QueryParameter>
Link copied to clipboard

Supported HTTP responses status.

Link copied to clipboard

Supported HTTP responses status.

Link copied to clipboard
data class ServerEvent(val event: String? = null, val data: String? = null, val id: String? = null, val retry: Long? = null)
Link copied to clipboard

Supported HTTP responses status.