HTTPClientError
public struct HTTPClientError : Error, Equatable, CustomStringConvertible
Possible client errors.
-
Declaration
Swift
public var description: String { get } -
URL provided is invalid.
Declaration
Swift
public static let invalidURL: HTTPClientError -
URL does not contain host.
Declaration
Swift
public static let emptyHost: HTTPClientError -
URL does not contain a socketPath as a host for http(s)+unix shemes.
Declaration
Swift
public static let missingSocketPath: HTTPClientError -
Client is shutdown and cannot be used for new requests.
Declaration
Swift
public static let alreadyShutdown: HTTPClientError -
URL does not contain scheme.
Declaration
Swift
public static let emptyScheme: HTTPClientError -
Provided URL scheme is not supported, supported schemes are:
httpandhttpsDeclaration
Swift
public static func unsupportedScheme(_ scheme: String) -> HTTPClientError -
Request timed out.
Declaration
Swift
public static let readTimeout: HTTPClientError -
Remote connection was closed unexpectedly.
Declaration
Swift
public static let remoteConnectionClosed: HTTPClientError -
Request was cancelled.
Declaration
Swift
public static let cancelled: HTTPClientError -
Request contains invalid identity encoding.
Declaration
Swift
public static let identityCodingIncorrectlyPresent: HTTPClientError -
Request contains multiple chunks definitions.
Declaration
Swift
public static let chunkedSpecifiedMultipleTimes: HTTPClientError -
Proxy response was invalid.
Declaration
Swift
public static let invalidProxyResponse: HTTPClientError -
Request does not contain
Content-Lengthheader.Declaration
Swift
public static let contentLengthMissing: HTTPClientError -
Proxy Authentication Required.
Declaration
Swift
public static let proxyAuthenticationRequired: HTTPClientError -
Redirect Limit reached.
Declaration
Swift
public static let redirectLimitReached: HTTPClientError -
Redirect Cycle detected.
Declaration
Swift
public static let redirectCycleDetected: HTTPClientError -
Unclean shutdown.
Declaration
Swift
public static let uncleanShutdown: HTTPClientError -
A body was sent in a request with method TRACE.
Declaration
Swift
public static let traceRequestWithBody: HTTPClientError -
Header field names contain invalid characters.
Declaration
Swift
public static func invalidHeaderFieldNames(_ names: [String]) -> HTTPClientError -
Header field values contain invalid characters.
Declaration
Swift
public static func invalidHeaderFieldValues(_ values: [String]) -> HTTPClientError -
Body length is not equal to
Content-Length.Declaration
Swift
public static let bodyLengthMismatch: HTTPClientError -
Body part was written after request was fully sent.
Declaration
Swift
public static let writeAfterRequestSent: HTTPClientError -
Incompatible headers specified, for example
Transfer-EncodingandContent-Length.Declaration
Swift
public static let incompatibleHeaders: HTTPClientError
View on GitHub
Install in Dash
HTTPClientError Structure Reference