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(FluentCaseInsensitiveStringsMap headers)
Invoked when the request bytes are starting to get send.
|
void |
onRequestResponseCompleted()
Invoked when the response bytes are been fully received.
|
void |
onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
Invoked when the response bytes are starting to get received.
|
void |
onThrowable(Throwable t)
Invoked when there is an unexpected issue.
|
void onRequestHeadersSent(FluentCaseInsensitiveStringsMap headers)
void onResponseHeadersReceived(FluentCaseInsensitiveStringsMap headers)
void onBytesReceived(byte[] bytes) throws IOException
bytes
- a byte[]
IOException
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 © 2015. All Rights Reserved.