make all removals go through the RemovableChannelHandler API (#815)

Motivation:

Some of the ChannelPipeline removal methods did not go through the
RemovableChannelHandler API.

Modifications:

make all removal APIs go through the RemovableChannelHandler API

Result:

fewer bugs
This commit is contained in:
Johannes Weiss authored and GitHub committed 2019-02-12 19:06:39 +01:00
1 parent c6c1f84459
commit 6e7a3de8e8
7 files changed
+97 -18

No files matched your search

+1 -1
View File
@@ -165,7 +165,7 @@ public final class HTTPRequestDecoder: HTTPDecoder<HTTPServerRequestPart>, Remov
/// were for accurate decoding.
///
/// Rather than set this up manually, consider using `ChannelPipeline.addHTTPClientHandlers`.
public final class HTTPResponseDecoder: HTTPDecoder<HTTPClientResponsePart>, ChannelOutboundHandler {
public final class HTTPResponseDecoder: HTTPDecoder<HTTPClientResponsePart>, ChannelOutboundHandler, RemovableChannelHandler {
public typealias OutboundIn = HTTPClientRequestPart
public typealias OutboundOut = HTTPClientRequestPart