Skip to content

Overview

//trimble-id/com.trimble.id/HttpClient

HttpClient

[JVM]
open class HttpClient

HttpClient class to make HTTP requests.

Constructors

HttpClient[JVM]
constructor()
Default constructor
constructor(configuration: HttpClientConfiguration)
Constructor with configuration
constructor(baseUri: URI)
Constructor with baseUri
constructor(baseUri: URI, configuration: HttpClientConfiguration)
Constructor with baseUri and configuration

Functions

NameSummary
delete[JVM]
open fun <T> delete(url: String, headers: List<NameValuePair>, responseType: Class<T>): CompletableFuture<Response<T>>
Delete method
dispose[JVM]
open fun dispose()
Shutdown the HttpClient
get[JVM]
open fun <T> get(url: String, headers: List<NameValuePair>, responseType: Class<T>): CompletableFuture<Response<T>>
Get method
patch[JVM]
open fun <T> patch(url: String, payload: RequestPayload, headers: List<NameValuePair>, responseType: Class<T>): CompletableFuture<Response<T>>
Patch method
post[JVM]
open fun <T> post(url: String, payload: RequestPayload, headers: List<NameValuePair>, responseType: Class<T>): CompletableFuture<Response<T>>
Post method
put[JVM]
open fun <T> put(url: String, payload: RequestPayload, headers: List<NameValuePair>, responseType: Class<T>): CompletableFuture<Response<T>>
Put method