Interface ChunkInterceptor
-
- All Implemented Interfaces:
public interface ChunkInterceptorAn interceptor to inspect or modify individual byte chunks as they are being received from the HTTP response body.
-
-
Method Summary
-
-
Method Detail
-
onChunk
abstract ByteArray onChunk(ByteArray chunk)
Called when a byte chunk is received from the HTTP response body.
- Parameters:
chunk- The received byte chunk.- Returns:
A byte chunk that will be appended to the modified response body. This can be the original chunk, or a modified chunk.
-
-
-
-