IosClientEngineConfig

class IosClientEngineConfig

Custom IosClientEngine config.

Constructors

Link copied to clipboard
fun IosClientEngineConfig()

Functions

Link copied to clipboard
fun configureRequest(block: <ERROR CLASS>.() -> Unit)

Appends block with NSMutableURLRequest configuration to requestConfig.

Link copied to clipboard
fun configureSession(block: <ERROR CLASS>.() -> Unit)

Appends block with NSURLSessionConfiguration configuration to sessionConfig.

Link copied to clipboard
fun handleChallenge(block: ChallengeHandler)

Sets the block as an HTTP request challenge handler replacing the old one.

Properties

Link copied to clipboard
var challengeHandler: ChallengeHandler? = null

Handles the challenge of HTTP responses NSURLSession.

Link copied to clipboard
var requestConfig: <ERROR CLASS>.() -> Unit

Request configuration.

Link copied to clipboard
var sessionConfig: <ERROR CLASS>.() -> Unit

Session configuration.