RequestTransportError
public struct RequestTransportError : Error
An error that wraps an error that occurred when executing a network request.
-
The error that caused the request to fail.
Declaration
Swift
public let underlyingError: Error
-
The failed request or
nil
if the request could not be constructed.Declaration
Swift
public let request: URLRequest?
-
A response received before the error occurred or
nil
if there was no response.Declaration
Swift
public let response: URLResponse?
-
A HTTP response received before the error occurred or
nil
if there was no response orresponse
is not an HTTP response.Declaration
Swift
public var httpResponse: HTTPURLResponse? { get }
-
Undocumented
Declaration
Swift
public init(underlyingError: Error, request: URLRequest?, response: URLResponse?)