-
TLS configuration, defaults to
TLSConfiguration.forClient()
.Declaration
Swift
public var tlsConfiguration: Optional<TLSConfiguration>
-
Enables following 3xx redirects automatically, defaults to
RedirectConfiguration()
.Following redirects are supported:
301: Moved Permanently
302: Found
303: See Other
304: Not Modified
305: Use Proxy
307: Temporary Redirect
308: Permanent Redirect
Declaration
Swift
public var redirectConfiguration: RedirectConfiguration
-
Default client timeout, defaults to no
read
timeout and 10 secondsconnect
timeout.Declaration
Swift
public var timeout: Timeout
-
Connection pool configuration.
Declaration
Swift
public var connectionPool: ConnectionPool
-
Upstream proxy, defaults to no proxy.
Declaration
Swift
public var proxy: Proxy?
-
Enables automatic body decompression. Supported algorithms are gzip and deflate.
Declaration
Swift
public var decompression: Decompression
-
Ignore TLS unclean shutdown error, defaults to
false
.Declaration
Swift
public var ignoreUncleanSSLShutdown: Bool
-
init(tlsConfiguration:
redirectConfiguration: timeout: connectionPool: proxy: ignoreUncleanSSLShutdown: decompression: ) Undocumented
Declaration
Swift
public init(tlsConfiguration: TLSConfiguration? = nil, redirectConfiguration: RedirectConfiguration? = nil, timeout: Timeout = Timeout(), connectionPool: ConnectionPool = ConnectionPool(), proxy: Proxy? = nil, ignoreUncleanSSLShutdown: Bool = false, decompression: Decompression = .disabled)
-
Undocumented
Declaration
Swift
public init(tlsConfiguration: TLSConfiguration? = nil, redirectConfiguration: RedirectConfiguration? = nil, timeout: Timeout = Timeout(), proxy: Proxy? = nil, ignoreUncleanSSLShutdown: Bool = false, decompression: Decompression = .disabled)
-
init(certificateVerification:
redirectConfiguration: timeout: maximumAllowedIdleTimeInConnectionPool: proxy: ignoreUncleanSSLShutdown: decompression: ) Undocumented
Declaration
Swift
public init(certificateVerification: CertificateVerification, redirectConfiguration: RedirectConfiguration? = nil, timeout: Timeout = Timeout(), maximumAllowedIdleTimeInConnectionPool: TimeAmount = .seconds(60), proxy: Proxy? = nil, ignoreUncleanSSLShutdown: Bool = false, decompression: Decompression = .disabled)
-
init(certificateVerification:
redirectConfiguration: timeout: connectionPool: proxy: ignoreUncleanSSLShutdown: decompression: backgroundActivityLogger: ) Undocumented
Declaration
Swift
public init(certificateVerification: CertificateVerification, redirectConfiguration: RedirectConfiguration? = nil, timeout: Timeout = Timeout(), connectionPool: TimeAmount = .seconds(60), proxy: Proxy? = nil, ignoreUncleanSSLShutdown: Bool = false, decompression: Decompression = .disabled, backgroundActivityLogger: Logger?)
-
init(certificateVerification:
redirectConfiguration: timeout: proxy: ignoreUncleanSSLShutdown: decompression: ) Undocumented
Declaration
Swift
public init(certificateVerification: CertificateVerification, redirectConfiguration: RedirectConfiguration? = nil, timeout: Timeout = Timeout(), proxy: Proxy? = nil, ignoreUncleanSSLShutdown: Bool = false, decompression: Decompression = .disabled)
-
Timeout configuration.
See moreDeclaration
Swift
public struct Timeout
-
Specifies redirect processing settings.
See moreDeclaration
Swift
public struct RedirectConfiguration
-
Connection pool configuration.
See moreDeclaration
Swift
public struct ConnectionPool : Hashable
-
Proxy server configuration Specifies the remote address of an HTTP proxy.
Adding an
Proxy
to your client’sHTTPClient.Configuration
will cause requests to be passed through the specified proxy using the HTTPCONNECT
method.If a
See moreTLSConfiguration
is used in conjunction withHTTPClient.Configuration.Proxy
, TLS will be established after successful proxy, between your client and the destination server.Declaration
Swift
public struct Proxy