tornadofx / tornadofx / HttpClientEngine

HttpClientEngine

class HttpClientEngine : Engine

Constructors

<init> HttpClientEngine(rest: Rest)

Properties

client lateinit var client: CloseableHttpClient
context lateinit var context: HttpClientContext
rest val rest: Rest

Inherited Properties

authInterceptor var authInterceptor: (Request) -> Unit
requestInterceptor var requestInterceptor: (Request) -> Unit
responseInterceptor var responseInterceptor: (Response) -> Unit

Functions

request fun request(seq: Long, method: Method, uri: URI, entity: Any?): HttpClientRequest
reset fun reset(): Unit
setBasicAuth fun setBasicAuth(username: String, password: String): Unit
setDigestAuth fun setDigestAuth(username: String, password: String): Unit

Extension Functions

getProperty fun <T> Any.getProperty(prop: KMutableProperty1<*, T>): ObjectProperty<T>
observable fun <T : Any> Any.observable(propName: String): ObjectProperty<T>