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
nilif the request could not be constructed.Declaration
Swift
public let request: URLRequest? -
A response received before the error occurred or
nilif there was no response.Declaration
Swift
public let response: URLResponse? -
A HTTP response received before the error occurred or
nilif there was no response orresponseis not an HTTP response.Declaration
Swift
public var httpResponse: HTTPURLResponse? { get } -
Undocumented
Declaration
Swift
public init(underlyingError: Error, request: URLRequest?, response: URLResponse?)
View on GitHub
RequestTransportError Structure Reference