File tree Expand file tree Collapse file tree 1 file changed +0
-33
lines changed
Sources/AsyncHTTPClient/ConnectionPool Expand file tree Collapse file tree 1 file changed +0
-33
lines changed Original file line number Diff line number Diff line change @@ -104,39 +104,6 @@ extension HTTPConnectionPool.ConnectionFactory {
104104 case http2( Channel )
105105 }
106106
107- func makeHTTP1Channel(
108- connectionID: HTTPConnectionPool . Connection . ID ,
109- deadline: NIODeadline ,
110- eventLoop: EventLoop ,
111- logger: Logger
112- ) -> EventLoopFuture < Channel > {
113- self . makeChannel (
114- connectionID: connectionID,
115- deadline: deadline,
116- eventLoop: eventLoop,
117- logger: logger
118- ) . flatMapThrowing { negotiated -> Channel in
119-
120- guard case . http1_1( let channel) = negotiated else {
121- preconditionFailure ( " Expected to create http/1.1 connections only for now " )
122- }
123-
124- // add the http1.1 channel handlers
125- let syncOperations = channel. pipeline. syncOperations
126- try syncOperations. addHTTPClientHandlers ( leftOverBytesStrategy: . forwardBytes)
127-
128- switch self . clientConfiguration. decompression {
129- case . disabled:
130- ( )
131- case . enabled( let limit) :
132- let decompressHandler = NIOHTTPResponseDecompressor ( limit: limit)
133- try syncOperations. addHandler ( decompressHandler)
134- }
135-
136- return channel
137- }
138- }
139-
140107 func makeChannel(
141108 connectionID: HTTPConnectionPool . Connection . ID ,
142109 deadline: NIODeadline ,
You can’t perform that action at this time.
0 commit comments