Builder

class Builder

Constructors

Link copied to clipboard
open fun Builder()

Functions

Link copied to clipboard
open fun body(@Nullable body: Array<Byte>): HttpRequest.Builder
HTTP Body data transmitted in an HTTP transaction message immediately following the headers if there is any.
Link copied to clipboard
open fun build(): HttpRequest
Link copied to clipboard
open fun flags(flags: Int): HttpRequest.Builder
Various flags that control HttpRequest processing.
Link copied to clipboard
open fun headers(@NonNull headers: HashMap<String, String>): HttpRequest.Builder
HTTP headers to include.
Link copied to clipboard
open fun method(@NonNull method: HttpMethod): HttpRequest.Builder
HTTP defines a set of request methods to indicate the desired action to be performed for a given resource.
Link copied to clipboard
open fun networkRestriction(@NonNull networkRestriction: NetworkRestriction): HttpRequest.Builder
Restrict the request to the specified network types.
Link copied to clipboard
open fun sdkInformation(@NonNull sdkInformation: SdkInformation): HttpRequest.Builder
SDK Information to be appended to the User-Agent string.
Link copied to clipboard
open fun timeout(timeout: Long): HttpRequest.Builder
Timeout defines how long, in seconds, the request is allowed to take in total (including connecting to the host).
Link copied to clipboard
open fun url(@NonNull url: String): HttpRequest.Builder
URL the request should be sent to