@@ -91,10 +91,6 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
91
91
self . run ( action, context: context)
92
92
}
93
93
94
- func close( context: ChannelHandlerContext , mode: CloseMode , promise: EventLoopPromise < Void > ? ) {
95
- context. close ( mode: mode, promise: promise)
96
- }
97
-
98
94
func write( context: ChannelHandlerContext , data: NIOAny , promise: EventLoopPromise < Void > ? ) {
99
95
self . logger. trace ( " New request to execute " )
100
96
@@ -135,28 +131,28 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
135
131
136
132
// MARK: - Run Actions
137
133
138
- func run( _ action: HTTP1ConnectionStateMachine . Action , context: ChannelHandlerContext ) {
134
+ private func run( _ action: HTTP1ConnectionStateMachine . Action , context: ChannelHandlerContext ) {
139
135
switch action {
140
136
case . sendRequestHead( let head, startBody: let startBody) :
141
137
if startBody {
142
- context. write ( wrapOutboundOut ( . head( head) ) , promise: nil )
138
+ context. write ( self . wrapOutboundOut ( . head( head) ) , promise: nil )
143
139
context. flush ( )
144
140
145
141
self . request!. requestHeadSent ( )
146
142
self . request!. resumeRequestBodyStream ( )
147
143
} else {
148
- context. write ( wrapOutboundOut ( . head( head) ) , promise: nil )
149
- context. write ( wrapOutboundOut ( . end( nil ) ) , promise: nil )
144
+ context. write ( self . wrapOutboundOut ( . head( head) ) , promise: nil )
145
+ context. write ( self . wrapOutboundOut ( . end( nil ) ) , promise: nil )
150
146
context. flush ( )
151
147
152
148
self . request!. requestHeadSent ( )
153
149
}
154
150
155
151
case . sendBodyPart( let part) :
156
- context. writeAndFlush ( wrapOutboundOut ( . body( part) ) , promise: nil )
152
+ context. writeAndFlush ( self . wrapOutboundOut ( . body( part) ) , promise: nil )
157
153
158
154
case . sendRequestEnd:
159
- context. writeAndFlush ( wrapOutboundOut ( . end( nil ) ) , promise: nil )
155
+ context. writeAndFlush ( self . wrapOutboundOut ( . end( nil ) ) , promise: nil )
160
156
161
157
case . pauseRequestBodyStream:
162
158
self . request!. pauseRequestBodyStream ( )
@@ -293,7 +289,7 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
293
289
self . run ( action, context: self . channelContext)
294
290
}
295
291
296
- func cancelRequest0( _ request: HTTPExecutingRequest ) {
292
+ private func cancelRequest0( _ request: HTTPExecutingRequest ) {
297
293
guard self . request === request else {
298
294
// very likely we got threading issues here...
299
295
return
0 commit comments