Package com.hexagonkt.http.client

This package holds the classes that define the HTTP client and its configuration settings.


Link copied to clipboard
class HttpClient(adapter: HttpClientPort, val settings: HttpClientSettings = HttpClientSettings()) : Closeable

Client to use other REST services.

Link copied to clipboard
interface HttpClientPort
Link copied to clipboard
data class HttpClientSettings(    val baseUrl: URL = URL("http://localhost:2010"),     val contentType: ContentType? = null,     val useCookies: Boolean = true,     val headers: HttpFields<Header> = HttpFields(),     val insecure: Boolean = false,     val sslSettings: SslSettings? = null)