Interface Response

All Known Subinterfaces:
ContentResponse
All Known Implementing Classes:
HttpContentResponse, HttpResponse

public interface Response

Response represents an HTTP response and offers methods to retrieve status code, HTTP version and headers.

Response objects are passed as parameters to Response.Listener callbacks, or as future result of Request.send().

Response objects do not contain getters for the response content, because it may be too large to fit into memory. The response content should be retrieved via content events, or via utility classes such as BufferingResponseListener.