@@ -230,7 +230,7 @@ internal class ResponseAccumulator: HTTPClientResponseDelegate {
230230 return task. eventLoop. makeSucceededFuture ( ( ) )
231231 }
232232
233- func didReceivePart ( task: HTTPClient . Task < Response > , _ part: ByteBuffer ) -> EventLoopFuture < Void > {
233+ func didReceiveBodyPart ( task: HTTPClient . Task < Response > , _ part: ByteBuffer ) -> EventLoopFuture < Void > {
234234 switch self . state {
235235 case . idle:
236236 preconditionFailure ( " no head received before body " )
@@ -319,7 +319,7 @@ public protocol HTTPClientResponseDelegate: AnyObject {
319319 /// - task: Current request context.
320320 /// - buffer: Received body `Part`.
321321 /// - returns: `EventLoopFuture` that will be used for backpressure.
322- func didReceivePart ( task: HTTPClient . Task < Response > , _ buffer: ByteBuffer ) -> EventLoopFuture < Void >
322+ func didReceiveBodyPart ( task: HTTPClient . Task < Response > , _ buffer: ByteBuffer ) -> EventLoopFuture < Void >
323323
324324 /// Called when error was thrown during request execution. Will be called zero or one time only. Request processing will be stopped after that.
325325 ///
@@ -345,7 +345,7 @@ extension HTTPClientResponseDelegate {
345345
346346 public func didReceiveHead( task: HTTPClient . Task < Response > , _: HTTPResponseHead ) -> EventLoopFuture < Void > { return task. eventLoop. makeSucceededFuture ( ( ) ) }
347347
348- public func didReceivePart ( task: HTTPClient . Task < Response > , _: ByteBuffer ) -> EventLoopFuture < Void > { return task. eventLoop. makeSucceededFuture ( ( ) ) }
348+ public func didReceiveBodyPart ( task: HTTPClient . Task < Response > , _: ByteBuffer ) -> EventLoopFuture < Void > { return task. eventLoop. makeSucceededFuture ( ( ) ) }
349349
350350 public func didReceiveError( task: HTTPClient . Task < Response > , _: Error ) { }
351351}
@@ -550,7 +550,7 @@ internal class TaskHandler<T: HTTPClientResponseDelegate>: ChannelInboundHandler
550550 default :
551551 self . state = . body
552552 self . mayRead = false
553- self . delegate. didReceivePart ( task: self . task, body) . whenComplete { result in
553+ self . delegate. didReceiveBodyPart ( task: self . task, body) . whenComplete { result in
554554 self . handleBackpressureResult ( context: context, result: result)
555555 }
556556 }
0 commit comments