NIOHTTP1
import NIOHTTP1
import NIOHTTP1
typealias HTTPClientRequestPart
The components of a HTTP request from the view of a HTTP client.
typealias HTTPClientResponsePart
The components of a HTTP response from the view of a HTTP client.
typealias HTTPRequestDecoder
A ByteToMessageDecoder
used to decode HTTP requests. See the documentation on HTTPDecoder
for more.
typealias HTTPResponseDecoder
A ByteToMessageDecoder
used to decode HTTP/1.x responses. See the documentation on HTTPDecoder
for more.
typealias HTTPServerRequestPart
The components of a HTTP request from the view of a HTTP server.
typealias HTTPServerResponsePart
The components of a HTTP response from the view of a HTTP server.
typealias NIOHTTPClientUpgradeConfiguration
Configuration required to configure a HTTP client pipeline for upgrade.
typealias NIOHTTPServerUpgradeConfiguration
enum HTTPDecoderKind
enum HTTPMethod
enum HTTPParserError
Errors that can be raised while parsing HTTP/1.1.
enum HTTPPart
The parts of a complete HTTP message, either request or response.
enum HTTPResponseStatus
A HTTP response status code.
enum HTTPServerUpgradeErrors
Errors that may be raised by the HTTPServerProtocolUpgrader
.
enum HTTPServerUpgradeEvents
User events that may be fired by the HTTPServerProtocolUpgrader
.
enum RemoveAfterUpgradeStrategy
Strategy to use when a HTTPDecoder is removed from a pipeline after a HTTP upgrade was detected.
struct HTTPHeaders
A representation of a block of HTTP header fields.
struct HTTPRequestHead
A representation of the request line and header fields of a HTTP request.
struct HTTPResponseHead
A representation of the status line and header fields of a HTTP response.
struct HTTPVersion
A structure representing a HTTP version.
struct NIOHTTPClientResponseFull
The parts of a complete HTTP response from the view of the client.
struct NIOHTTPClientUpgradeError
Errors that may be raised by the HTTPClientProtocolUpgrader
.
struct NIOHTTPDecoderError
Errors thrown by HTTPRequestDecoder
and HTTPResponseDecoder
in addition to HTTPParserError
.
struct NIOHTTPObjectAggregatorError
struct NIOHTTPObjectAggregatorEvent
struct NIOHTTPServerRequestFull
The parts of a complete HTTP response from the view of the client.
struct NIOInformationalResponseStrategy
Strategy to use when a HTTPDecoder receives an informational HTTP response (1xx except 101)
class HTTPDecoder
A ChannelInboundHandler
that parses HTTP/1-style messages, converting them from unstructured bytes to a sequence of HTTP messages.
class HTTPRequestEncoder
A ChannelOutboundHandler
that can serialize HTTP requests.
class HTTPResponseEncoder
A ChannelOutboundHandler
that can serialize HTTP responses.
class HTTPServerPipelineHandler
A ChannelHandler
that handles HTTP pipelining by buffering inbound data until a response has been sent.
class HTTPServerProtocolErrorHandler
A simple channel handler that catches errors emitted by parsing HTTP requests and sends 400 Bad Request responses.
class HTTPServerUpgradeHandler
A server-side channel handler that receives HTTP requests and optionally performs a HTTP-upgrade. Removes itself from the channel pipeline after the first inbound request on the connection, regardless of whether the upgrade succeeded or not.
class NIOHTTPClientResponseAggregator
A ChannelInboundHandler
that handles HTTP chunked HTTPClientResponsePart
messages by aggregating individual message chunks into a single NIOHTTPClientResponseFull
.
class NIOHTTPClientUpgradeHandler
A client-side channel handler that sends a HTTP upgrade handshake request to perform a HTTP-upgrade. When the first HTTP request is sent, this handler will add all appropriate headers to perform an upgrade to the a protocol. It may add headers for a set of protocols in preference order. If the upgrade fails (i.e. response is not 101 Switching Protocols), this handler simply removes itself from the pipeline. If the upgrade is successful, it upgrades the pipeline to the new protocol.
class NIOHTTPServerRequestAggregator
A ChannelInboundHandler
that handles HTTP chunked HTTPServerRequestPart
messages by aggregating individual message chunks into a single NIOHTTPServerRequestFull
.
protocol HTTPServerProtocolUpgrader
An object that implements HTTPServerProtocolUpgrader
knows how to handle HTTP upgrade to a protocol on a server-side channel.
protocol NIOHTTPClientProtocolUpgrader
An object that implements NIOHTTPClientProtocolUpgrader
knows how to handle HTTP upgrade to a protocol on a client-side channel. It has the option of denying this upgrade based upon the server response.
typealias HTTPUpgradeConfiguration
Configuration required to configure a HTTP server pipeline for upgrade.