Structures

The following structures are available globally.

  • Errors thrown by HTTPRequestDecoder and HTTPResponseDecoder in addition to HTTPParserError.

    See more

    Declaration

    Swift

    public struct NIOHTTPDecoderError : Error
    extension NIOHTTPDecoderError: Hashable
    extension NIOHTTPDecoderError: CustomDebugStringConvertible
  • A representation of the request line and header fields of a HTTP request.

    See more

    Declaration

    Swift

    public struct HTTPRequestHead : Equatable
    extension HTTPRequestHead: CustomStringConvertible
  • A representation of the status line and header fields of a HTTP response.

    See more

    Declaration

    Swift

    public struct HTTPResponseHead : Equatable
    extension HTTPResponseHead: CustomStringConvertible
  • A representation of a block of HTTP header fields.

    HTTP header fields are a complex data structure. The most natural representation for these is a sequence of two-tuples of field name and field value, both as strings. This structure preserves that representation, but provides a number of convenience features in addition to it.

    For example, this structure enables access to header fields based on the case-insensitive form of the field name, but preserves the original case of the field when needed. It also supports recomposing headers to a maximally joined or split representation, such that header fields that are able to be repeated can be represented appropriately.

    See more

    Declaration

    Swift

    public struct HTTPHeaders : CustomStringConvertible, ExpressibleByDictionaryLiteral
    extension HTTPHeaders: RandomAccessCollection
    extension HTTPHeaders: Equatable
  • A structure representing a HTTP version.

    See more

    Declaration

    Swift

    public struct HTTPVersion : Equatable
    extension HTTPVersion: CustomStringConvertible
  • Errors that may be raised by the HTTPClientProtocolUpgrader.

    See more

    Declaration

    Swift

    public struct NIOHTTPClientUpgradeError : Hashable, Error
    extension NIOHTTPClientUpgradeError: CustomStringConvertible
  • The parts of a complete HTTP response from the view of the client.

    A full HTTP request is made up of a response header encoded by .head and an optional .body.

    See more

    Declaration

    Swift

    public struct NIOHTTPServerRequestFull
    extension NIOHTTPServerRequestFull: Equatable
  • The parts of a complete HTTP response from the view of the client.

    Afull HTTP response is made up of a response header encoded by .head and an optional .body.

    See more

    Declaration

    Swift

    public struct NIOHTTPClientResponseFull
    extension NIOHTTPClientResponseFull: Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct NIOHTTPObjectAggregatorError : Error, Equatable
  • Undocumented

    See more

    Declaration

    Swift

    public struct NIOHTTPObjectAggregatorEvent : Hashable