Package com.hexagonkt.http.client.model

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: HttpFields<QueryParameter> = HttpFields(),     val headers: HttpFields<Header> = HttpFields(),     val body: Any = "",     val parts: List<HttpPart> = emptyList(),     val formParameters: HttpFields<FormParameter> = HttpFields(),     val cookies: List<HttpCookie> = emptyList(),     val contentType: ContentType? = null,     val accept: List<ContentType> = emptyList()) : HttpRequest
Link copied to clipboard
data class HttpClientResponse(    val body: Any = "",     val headers: HttpFields<Header> = HttpFields(),     val contentType: ContentType? = null,     val cookies: List<HttpCookie> = emptyList(),     val status: HttpStatus = NOT_FOUND,     val contentLength: Long = -1L) : HttpClientResponsePort
Link copied to clipboard
interface HttpClientResponsePort : HttpResponse