@@ -17,7 +17,7 @@ import NIO
17
17
import NIOHTTP1
18
18
19
19
final class HTTP1ClientChannelHandler : ChannelDuplexHandler {
20
- typealias OutboundIn = HTTPExecutingRequest
20
+ typealias OutboundIn = HTTPExecutableRequest
21
21
typealias OutboundOut = HTTPClientRequestPart
22
22
typealias InboundIn = HTTPClientResponsePart
23
23
@@ -35,7 +35,7 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
35
35
private var channelContext : ChannelHandlerContext ?
36
36
37
37
/// the currently executing request
38
- private var request : HTTPExecutingRequest ?
38
+ private var request : HTTPExecutableRequest ?
39
39
private var idleReadTimeoutTimer : Scheduled < Void > ?
40
40
41
41
let connection : HTTP1Connection
@@ -266,10 +266,10 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
266
266
267
267
// MARK: Private HTTPRequestExecutor
268
268
269
- private func writeRequestBodyPart0( _ data: IOData , request: HTTPExecutingRequest ) {
269
+ private func writeRequestBodyPart0( _ data: IOData , request: HTTPExecutableRequest ) {
270
270
guard self . request === request, let context = self . channelContext else {
271
- // Because the HTTPExecutingRequest may run in a different thread to our eventLoop,
272
- // calls from the HTTPExecutingRequest to our ChannelHandler may arrive here after
271
+ // Because the HTTPExecutableRequest may run in a different thread to our eventLoop,
272
+ // calls from the HTTPExecutableRequest to our ChannelHandler may arrive here after
273
273
// the request has been popped by the state machine or the ChannelHandler has been
274
274
// removed from the Channel pipeline. This is a normal threading issue, noone has
275
275
// screwed up.
@@ -280,7 +280,7 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
280
280
self . run ( action, context: context)
281
281
}
282
282
283
- private func finishRequestBodyStream0( _ request: HTTPExecutingRequest ) {
283
+ private func finishRequestBodyStream0( _ request: HTTPExecutableRequest ) {
284
284
guard self . request === request, let context = self . channelContext else {
285
285
// See code comment in `writeRequestBodyPart0`
286
286
return
@@ -290,7 +290,7 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
290
290
self . run ( action, context: context)
291
291
}
292
292
293
- private func demandResponseBodyStream0( _ request: HTTPExecutingRequest ) {
293
+ private func demandResponseBodyStream0( _ request: HTTPExecutableRequest ) {
294
294
guard self . request === request, let context = self . channelContext else {
295
295
// See code comment in `writeRequestBodyPart0`
296
296
return
@@ -302,7 +302,7 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
302
302
self . run ( action, context: context)
303
303
}
304
304
305
- private func cancelRequest0( _ request: HTTPExecutingRequest ) {
305
+ private func cancelRequest0( _ request: HTTPExecutableRequest ) {
306
306
guard self . request === request, let context = self . channelContext else {
307
307
// See code comment in `writeRequestBodyPart0`
308
308
return
@@ -314,7 +314,7 @@ final class HTTP1ClientChannelHandler: ChannelDuplexHandler {
314
314
}
315
315
316
316
extension HTTP1ClientChannelHandler : HTTPRequestExecutor {
317
- func writeRequestBodyPart( _ data: IOData , request: HTTPExecutingRequest ) {
317
+ func writeRequestBodyPart( _ data: IOData , request: HTTPExecutableRequest ) {
318
318
if self . eventLoop. inEventLoop {
319
319
self . writeRequestBodyPart0 ( data, request: request)
320
320
} else {
@@ -324,7 +324,7 @@ extension HTTP1ClientChannelHandler: HTTPRequestExecutor {
324
324
}
325
325
}
326
326
327
- func finishRequestBodyStream( _ request: HTTPExecutingRequest ) {
327
+ func finishRequestBodyStream( _ request: HTTPExecutableRequest ) {
328
328
if self . eventLoop. inEventLoop {
329
329
self . finishRequestBodyStream0 ( request)
330
330
} else {
@@ -334,7 +334,7 @@ extension HTTP1ClientChannelHandler: HTTPRequestExecutor {
334
334
}
335
335
}
336
336
337
- func demandResponseBodyStream( _ request: HTTPExecutingRequest ) {
337
+ func demandResponseBodyStream( _ request: HTTPExecutableRequest ) {
338
338
if self . eventLoop. inEventLoop {
339
339
self . demandResponseBodyStream0 ( request)
340
340
} else {
@@ -344,7 +344,7 @@ extension HTTP1ClientChannelHandler: HTTPRequestExecutor {
344
344
}
345
345
}
346
346
347
- func cancelRequest( _ request: HTTPExecutingRequest ) {
347
+ func cancelRequest( _ request: HTTPExecutableRequest ) {
348
348
if self . eventLoop. inEventLoop {
349
349
self . cancelRequest0 ( request)
350
350
} else {
0 commit comments