Index
port_http_client / com.hexagonkt.http.client / Client
Client¶
class Client
Client to use other REST services.
Constructors¶
Name | Summary |
---|---|
<init> | Client(settings: ClientSettings = ClientSettings()) Client(endpoint: String = "", settings: ClientSettings = ClientSettings()) Client to use other REST services. Client(adapter: ClientPort = InjectionManager.inject(), endpoint: String = "", settings: ClientSettings = ClientSettings()) |
Properties¶
Name | Summary |
---|---|
cookies | val cookies: MutableMap < String , Cookie> |
endpoint | val endpoint: String |
settings | val settings: ClientSettings |
Functions¶
Name | Summary |
---|---|
delete | fun delete(path: String , body: Any ? = null, contentType: String ? = settings.contentType): Response fun delete(path: String , body: Any , format: SerializationFormat): Response |
get | fun get(path: String , headers: Map < String , List < String >> = emptyMap(), body: Any ? = null, contentType: String ? = settings.contentType): Response fun get(path: String , headers: Map < String , List < String >> = emptyMap(), body: Any , format: SerializationFormat): Response |
head | fun head(path: String , headers: Map < String , List < String >> = emptyMap()): Response |
options | fun options(path: String , body: Any ? = null, contentType: String ? = settings.contentType, headers: Map < String , List < String >> = emptyMap()): Response fun options(path: String , body: Any , format: SerializationFormat, headers: Map < String , List < String >> = emptyMap()): Response |
patch | fun patch(path: String , body: Any ? = null, contentType: String ? = settings.contentType): Response fun patch(path: String , body: Any , format: SerializationFormat): Response |
post | fun post(path: String , body: Any ? = null, contentType: String ? = settings.contentType): Response fun post(path: String , body: Any , format: SerializationFormat): Response |
put | fun put(path: String , body: Any ? = null, contentType: String ? = settings.contentType): Response fun put(path: String , body: Any , format: SerializationFormat): Response |
send | Synchronous execution.fun send(request: Request ): Response |
trace | fun trace(path: String , body: Any ? = null, contentType: String ? = settings.contentType): Response fun trace(path: String , body: Any , format: SerializationFormat): Response |