Package-level declarations

Classes to model client HTTP messages (requests and responses). Built on top of the http module.

Types

Link copied to clipboard
data class HttpClientCall(val request: HttpClientRequest = HttpClientRequest(), val response: HttpClientResponsePort = HttpClientResponse()) : HttpCall<HttpClientRequest, HttpClientResponsePort>
Link copied to clipboard
data class HttpClientRequest(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 accept: List<ContentType> = emptyList(), val authorization: Authorization? = null) : HttpRequest
Link copied to clipboard
data class HttpClientResponse(val body: Any = "", val headers: Headers = Headers(), val contentType: ContentType? = null, val cookies: List<Cookie> = emptyList(), val status: HttpStatus = NOT_FOUND, val contentLength: Long = -1L) : HttpClientResponsePort
Link copied to clipboard