mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Doc comments for NIOHTTP1
This commit is contained in:
1 parent
557f8940f7
commit
d61e084d3c
4 files changed
+184
-2
No files matched your search
@@ -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
|
||||
|
||||
Reference in new issue
Block a user