Enumerations

The following enumerations are available globally.

  • The parts of a complete HTTP message, either request or response.

    A HTTP message is made up of a request or status line with several headers, encoded by .head, zero or more body parts, and optionally some trailers. To indicate that a complete HTTP message has been sent or received, we use .end, which may also contain any trailers that make up the mssage.

    See more

    Declaration

    Swift

    public enum HTTPPart<HeadT, BodyT> where HeadT : Equatable, BodyT : Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public enum HTTPMethod : Equatable
  • Errors that can be raised while parsing HTTP/1.1.

    See more

    Declaration

    Swift

    public enum HTTPParserError : Error
  • A HTTP response status code.

    See more

    Declaration

    Swift

    public enum HTTPResponseStatus