RequestSpec

interface RequestSpec

Inheritors

Functions

Link copied to clipboard
open fun auth(scheme: AuthScheme, credentials: Array<String>): RequestSpec
Link copied to clipboard
open fun basicAuth(username: String, password: String): RequestSpec
Link copied to clipboard
open fun bearerAuth(token: String): RequestSpec
Link copied to clipboard
abstract fun body(body: Any): RequestSpec
Link copied to clipboard
abstract fun disableRetry(): RequestSpec
Link copied to clipboard
abstract fun formParam(name: String, value: String): RequestSpec
Link copied to clipboard
abstract fun group(clientGroup: ClientGroup): RequestSpec
Link copied to clipboard
open fun header(name: HttpHeaderName, value: HttpHeaderValue, args: Array<Any>): RequestSpec
Link copied to clipboard
abstract fun interceptor(interceptor: RequestInterceptor): RequestSpec
Link copied to clipboard
abstract fun queryParam(name: String, value: String): RequestSpec
Link copied to clipboard
abstract fun retry(maxRetries: Int, backoffMs: Duration): RequestSpec
abstract fun retry(maxRetries: Int, backoffMs: Duration, maxBackoffMs: Duration): RequestSpec
Link copied to clipboard
open fun send(): RestResponse<Void>
abstract fun <T> send(responseType: Class<T>): RestResponse<T>
Link copied to clipboard
abstract fun serializer(format: SerializerFormat): RequestSpec
Link copied to clipboard
abstract fun timeout(timeout: Duration): RequestSpec
Link copied to clipboard
abstract fun unsafeHeader(name: HttpHeaderName, value: String): RequestSpec