DarwinLegacyClientEngineConfig

A configuration for the DarwinLegacy client engine.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Handles the challenge of HTTP responses NSURLSession.

Link copied to clipboard
var preconfiguredSession: <Error class: unknown class>?

Specifies a session to use for making HTTP requests.

Link copied to clipboard
var requestConfig: <Error class: unknown class>.() -> Unit

A request configuration.

Link copied to clipboard
var sessionConfig: <Error class: unknown class>.() -> Unit

A session configuration.

Functions

Link copied to clipboard
fun configureRequest(block: <Error class: unknown class>.() -> Unit)

Appends a block with the NSMutableURLRequest configuration to requestConfig.

Link copied to clipboard
fun configureSession(block: <Error class: unknown class>.() -> Unit)

Appends a block with the NSURLSessionConfiguration configuration to sessionConfig.

Link copied to clipboard

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

Link copied to clipboard
fun usePreconfiguredSession(session: <Error class: unknown class>?)

Set a session to be used to make HTTP requests, null to create default session. If the preconfigured session is set, configureSession block will be ignored.

fun usePreconfiguredSession(session: <Error class: unknown class>, delegate: KtorLegacyNSURLSessionDelegate)

Set a session to be used to make HTTP requests. If the preconfigured session is set, configureSession and handleChallenge blocks will be ignored.