HTTPPart

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

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.

  • Undocumented

    Declaration

    Swift

    case head(HeadT)
  • Undocumented

    Declaration

    Swift

    case body(BodyT)
  • end

    Undocumented

    Declaration

    Swift

    case end(HTTPHeaders?)
  • Declaration

    Swift

    public static func ==(lhs: HTTPPart, rhs: HTTPPart) -> Bool