rabbit.httpio
Interface HttpResponseListener
- All Superinterfaces:
- AsyncListener
public interface HttpResponseListener
- extends AsyncListener
A listener for http header sent + read.
- Author:
- Robert Olofsson
httpResponse
void httpResponse(HttpHeader response,
BufferHandle bufferHandle,
boolean keepalive,
boolean isChunked,
long dataSize)
- The http header has been sent.
- Parameters:
response
- the HttpHeader that was readbufferHandle
- the BufferHandle that may or may not hold unread data.keepalive
- if the sender want to use keepalive.isChunked
- if false content is not chunked,
if true content is chunked.dataSize
- the contents size or -1 if size is unknown.