Package-level declarations
TODO
Types
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
data class HttpCall(val request: HttpRequestPort = HttpRequest(), val response: HttpResponsePort = HttpResponse())
Link copied to clipboard
Link copied to clipboard
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
data class HttpRequest(val method: HttpMethod = GET, val protocol: HttpProtocol = HTTP, val host: String = "localhost", val port: Int = 80, val path: String = "", val queryParameters: QueryParameters = QueryParameters(), val headers: Headers = Headers(), val body: Any = "", val parts: List<HttpPart> = emptyList(), val formParameters: FormParameters = FormParameters(), val cookies: List<Cookie> = emptyList(), val contentType: ContentType? = null, val certificateChain: List<X509Certificate> = emptyList(), val accept: List<ContentType> = emptyList(), val contentLength: Long = -1L, val authorization: Authorization? = null) : HttpRequestPort
Link copied to clipboard
Link copied to clipboard
data class HttpResponse(val body: Any = "", val headers: Headers = Headers(), val contentType: ContentType? = null, val cookies: List<Cookie> = emptyList(), val status: HttpStatus = NOT_FOUND_404, val contentLength: Long = -1L, val onConnect: WsSession.() -> Unit = {}, val onBinary: WsSession.(data: ByteArray) -> Unit = {}, val onText: WsSession.(text: String) -> Unit = {}, val onPing: WsSession.(data: ByteArray) -> Unit = {}, val onPong: WsSession.(data: ByteArray) -> Unit = {}, val onClose: WsSession.(status: Int, reason: String) -> Unit = { _, _ -> }) : HttpResponsePort
Link copied to clipboard
Link copied to clipboard
data class HttpStatus(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)
})
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class QueryParameters(val httpFields: Map<String, QueryParameter>) : Map<String, QueryParameter>
Link copied to clipboard
data class ServerEvent(val event: String? = null, val data: String? = null, val id: String? = null, val retry: Long? = null)
Properties
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard