public interface TransferListener
Modifier and Type | Method and Description |
---|---|
void |
onBytesReceived(byte[] bytes)
Invoked every time response's chunk are received.
|
void |
onBytesSent(long amount,
long current,
long total)
Invoked every time request's chunk are sent.
|
void |
onRequestHeadersSent(io.netty.handler.codec.http.HttpHeaders headers)
Invoked when the request bytes are starting to get send.
|
void |
onRequestResponseCompleted()
Invoked when the response bytes are been fully received.
|
void |
onResponseHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
Invoked when the response bytes are starting to get received.
|
void |
onThrowable(Throwable t)
Invoked when there is an unexpected issue.
|
void onRequestHeadersSent(io.netty.handler.codec.http.HttpHeaders headers)
headers
- the headersvoid onResponseHeadersReceived(io.netty.handler.codec.http.HttpHeaders headers)
headers
- the headersvoid onBytesReceived(byte[] bytes)
bytes
- a byte[]
void onBytesSent(long amount, long current, long total)
amount
- The amount of bytes to transfercurrent
- The amount of bytes transferredtotal
- The total number of bytes transferredvoid onRequestResponseCompleted()
Copyright © 2017. All Rights Reserved.