mirror of
https://github.com/apple/swift-nio
synced 2026-11-27 05:04:22 +00:00
Fix documentation for HTTPRequestDecoder. (#1342)
There is no `ChannelPipeline.addHTTPServerHandlers` but there is `ChannelPipeline.configureHTTPServerPipeline`. Comment for `HTTPResponseDecoder` mentioning `ChannelPipeline.addHTTPClientHandlers` is correct.
This commit is contained in:
1 parent
976e65aba7
commit
eb2dfd8d1b
1 file changed
+1
-1
@@ -427,7 +427,7 @@ public typealias HTTPResponseDecoder = HTTPDecoder<HTTPClientResponsePart, HTTPC
|
||||
/// that reason, applications should try to ensure that the `HTTPRequestDecoder` *later* in the
|
||||
/// `ChannelPipeline` than the `HTTPResponseEncoder`.
|
||||
///
|
||||
/// Rather than set this up manually, consider using `ChannelPipeline.addHTTPServerHandlers`.
|
||||
/// Rather than set this up manually, consider using `ChannelPipeline.configureHTTPServerPipeline`.
|
||||
public typealias HTTPRequestDecoder = HTTPDecoder<HTTPServerRequestPart, HTTPServerResponsePart>
|
||||
|
||||
public enum HTTPDecoderKind {
|
||||
|
||||
Reference in new issue
Block a user