Enums

The following enums are available globally.

  • HTTP Versions

    See more

    Declaration

    Swift

    public enum HTTPVersion: String
  • HTTP Header Fields for Client Requests

    See more

    Declaration

    Swift

    public enum HTTPRequestHeaderField: String
  • HTTP Header fields for Server Responses

    See more

    Declaration

    Swift

    public enum HTTPResponseHeaderField: String
  • Response Codes for HTTP responses.

    • 1XX: Informational Responses

    • 2XX: Success Responses

    • 3XX: Redirect Responses

    • 4XX: Client Error Responses

    • 5XX: Server Error Responses

    See more

    Declaration

    Swift

    public enum HTTPStatusCode : String
  • Undocumented

    See more
  • Undocumented

    See more
  • Error type for errors which occurred while working with sockets and streams.

    See more

    Declaration

    Swift

    public enum IOError : Error
  • An error type indicating an error associated with a socket operation.

    These errors are not very likely to occur.

    See more

    Declaration

    Swift

    public enum SocketError : Error
  • Currently not used.

    See more

    Declaration

    Swift

    public enum DNSError : Error
  • An error type for errors which may occurr during a TLS/SSL session.

    See more

    Declaration

    Swift

    public enum TLSError : Error