Builder

open class Builder

The HttpRequestConfig Builder.

Constructors

Link copied to clipboard
constructor()
Instantiates a new HttpRequestConfig.Builder.
constructor(httpRequestConfig: HttpRequestConfig)
Initializes the instance with the values from an HttpRequestConfig

Functions

Link copied to clipboard
open fun addQueryParameter(queryParameterKey: String, queryParameterValue: String): HttpRequestConfig.Builder
Adds an HTTP query parameter
Link copied to clipboard
Adds the HTTP request query parameters as a map of key-value pairs.
Link copied to clipboard
open fun addRequestHeader(headerKey: String, headerValue: String): HttpRequestConfig.Builder
Adds an HTTP request header
Link copied to clipboard
Adds the HTTP request headers as a map of key-value pairs.
Link copied to clipboard
Builds the HttpRequestConfig object.
Link copied to clipboard
open fun setBrightcoveAuthorizationToken(brightcoveAuthorizationToken: String): HttpRequestConfig.Builder
Sets the Brightcove authorization token.
Link copied to clipboard
open fun setConnectTimeout(connectTimeoutMs: Int): HttpRequestConfig.Builder
Increments the connection timeout
Link copied to clipboard
open fun setReadTimeout(readTimeoutMs: Int): HttpRequestConfig.Builder
Increments the connection timeout