TransportOptions
public struct TransportOptions
Options to control the HTTP pipeline transport.
-
Default timeout on any network call
Declaration
Swift
public let timeout: TimeInterval?
-
An array of custom
PipelineStage
policies to be applied per client request.Declaration
Swift
public let perRequestPolicies: [PipelineStage]?
-
An array of custom
PipelineStage
policies to be applied per retry of a request.Declaration
Swift
public let perRetryPolicies: [PipelineStage]?
-
An
HTTPTransportStage
policy to use in lieu of the default.Declaration
Swift
public let transport: TransportStage?
-
Initialize a
TransportOptions
structure.Declaration
Swift
public init( timeout: TimeInterval? = nil, perRequestPolicies: [PipelineStage]? = nil, perRetryPolicies: [PipelineStage]? = nil, transport: TransportStage? = nil )
Parameters
timeout
Default timeout on any network call.
perRequestPolicies
An array of custom
PipelineStage
policies to be applied per client request.perRetryPolicies
An array of custom
PipelineStage
policies to be applied per retry of a request.transport
An
HTTPTransportStage
policy to use in lieu of the default.