RequestOptions

data class RequestOptions(val method: HttpMethod = HttpMethod.Get, val body: String? = null, val maxRetryAttempts: Int = 4, val ignoreThrottler: Boolean = false)

Representing the options for customizing an HTTP request.

Parameters

method

The HTTP method to be used for the request. Default is HttpMethod.Get.

body

The request body as a JSON string. Default is null.

maxRetryAttempts

The maximum number of retry attempts in case of request timeouts. Default is 4. If the request times out, the method will retry the request with increasing delays between retries.

ignoreThrottler

Specifies whether to ignore the throttler when making the request. Default is false. If false, the method will wait for throttling based on the configured throttler before executing the request. If true, the throttler will be bypassed, and the request will be executed immediately.

Constructors

Link copied to clipboard
constructor(method: HttpMethod = HttpMethod.Get, body: String? = null, maxRetryAttempts: Int = 4, ignoreThrottler: Boolean = false)

Properties

Link copied to clipboard
val body: String? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val method: HttpMethod