Doc comments for NIOHTTP1

This commit is contained in:
Cory Benfield committed 2017-11-30 16:07:41 +00:00
1 parent 557f8940f7
commit d61e084d3c
4 files changed
+184 -2

No files matched your search

+8
View File
@@ -105,6 +105,10 @@ private func sanitizeTransportHeaders(mayHaveBody: Bool, headers: inout HTTPHead
}
}
/// A `ChannelOutboundHandler` that can serialize HTTP requests.
///
/// This channel handler is used to translate messages from a series of
/// `HTTPClientRequestPart` into the HTTP/1.1 wire format.
public final class HTTPRequestEncoder : ChannelOutboundHandler {
public typealias OutboundIn = HTTPClientRequestPart
public typealias OutboundOut = IOData
@@ -138,6 +142,10 @@ public final class HTTPRequestEncoder : ChannelOutboundHandler {
}
}
/// A `ChannelOutboundHandler` that can serialize HTTP responses.
///
/// This channel handler is used to translate messages from a series of
/// `HTTPServerResponsePart` into the HTTP/1.1 wire format.
public final class HTTPResponseEncoder : ChannelOutboundHandler {
public typealias OutboundIn = HTTPServerResponsePart
public typealias OutboundOut = IOData