mirror of
https://github.com/apple/swift-nio-extras
synced 2026-11-25 04:47:50 +00:00
Add RemovableChannelHandler comformance to HTTPType channel handlers (#213)
This commit is contained in:
1 parent
7264a5a0d7
commit
6717fd068f
3 files changed
+6
-6
No files matched your search
@@ -23,7 +23,7 @@ import NIOHTTPTypes
|
||||
/// This is intended for compatibility purposes where a channel handler working with
|
||||
/// HTTP/1 messages needs to work on top of the new version-independent HTTP types
|
||||
/// abstraction.
|
||||
public final class HTTPToHTTP1ClientCodec: ChannelDuplexHandler {
|
||||
public final class HTTPToHTTP1ClientCodec: ChannelDuplexHandler, RemovableChannelHandler {
|
||||
public typealias InboundIn = HTTPResponsePart
|
||||
public typealias InboundOut = HTTPClientResponsePart
|
||||
|
||||
@@ -86,7 +86,7 @@ public final class HTTPToHTTP1ClientCodec: ChannelDuplexHandler {
|
||||
/// This is intended for compatibility purposes where a channel handler working with
|
||||
/// HTTP/1 messages needs to work on top of the new version-independent HTTP types
|
||||
/// abstraction.
|
||||
public final class HTTPToHTTP1ServerCodec: ChannelDuplexHandler {
|
||||
public final class HTTPToHTTP1ServerCodec: ChannelDuplexHandler, RemovableChannelHandler {
|
||||
public typealias InboundIn = HTTPRequestPart
|
||||
public typealias InboundOut = HTTPServerRequestPart
|
||||
|
||||
|
||||
Reference in new issue
Block a user