RestClient

class RestClient<K>(config: ClientConfig, tokenProvider: TokenProvider, responseHandler: RestResponseHandler<K>)

Constructors

Link copied to clipboard
constructor(config: ClientConfig, tokenProvider: TokenProvider, responseHandler: RestResponseHandler<K>)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun <R> delete(uri: URI, request: DeleteRequest, mapper: (K, HttpHeaders) -> R): R?
Link copied to clipboard
fun <R> get(uri: URI, request: GetRequest, mapper: (K, HttpHeaders) -> R): R?
Link copied to clipboard
inline fun <R> RestClient<InputStream>.get(uri: URI, request: GetRequest): R?
Link copied to clipboard
fun <T : Any, R> patch(uri: URI, request: PatchRequest<T>, mapper: (K, HttpHeaders) -> R): R?
Link copied to clipboard
inline fun <T : Any, R> RestClient<InputStream>.patch(uri: URI, request: PatchRequest<T>): R?
Link copied to clipboard
fun <T : Any, R> post(uri: URI, request: PostRequest<T>, mapper: (K, HttpHeaders) -> R): R?
Link copied to clipboard
inline fun <T : Any, R> RestClient<InputStream>.post(uri: URI, request: PostRequest<T>): R?
Link copied to clipboard
fun <T : Any, R> put(uri: URI, request: PutRequest<T>, mapper: (K, HttpHeaders) -> R): R?
Link copied to clipboard
inline fun <T : Any, R> RestClient<InputStream>.put(uri: URI, request: PutRequest<T>): R?