DarwinClientEngineConfig

class DarwinClientEngineConfig

A configuration for the Darwin client engine.

Constructors

Link copied to clipboard
fun DarwinClientEngineConfig()

Functions

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

Appends a block with the NSMutableURLRequest configuration to requestConfig.

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

Appends a block with the 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

A request configuration.

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

A session configuration.