Package org.eclipse.jetty.client
Class HttpResponse
java.lang.Object
org.eclipse.jetty.client.HttpResponse
- All Implemented Interfaces:
- Response
- 
Nested Class SummaryNested classes/interfaces inherited from interface org.eclipse.jetty.client.api.ResponseResponse.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.DemandedContentListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionbooleanAttempts to abort the receive of this response.voidReturns the headers of this response.<T extends Response.ResponseListener>
 List<T>getListeners(Class<T> type) intheaders(Consumer<HttpFields.Mutable> consumer) status(int status) toString()version(HttpVersion version) 
- 
Constructor Details- 
HttpResponse
 
- 
- 
Method Details- 
getRequest- Specified by:
- getRequestin interface- Response
- Returns:
- the request associated with this response
 
- 
getVersion- Specified by:
- getVersionin interface- Response
- Returns:
- the HTTP version of this response, such as "HTTP/1.1"
 
- 
version
- 
getStatuspublic int getStatus()
- 
status
- 
getReason- Specified by:
- getReasonin interface- Response
- Returns:
- the HTTP reason associated to the Response.getStatus()
 
- 
reason
- 
getHeadersDescription copied from interface:ResponseReturns the headers of this response. Some headers sent by the server may not be present, or be present but modified, while the content is being processed. A typical example is the Content-Lengthheader when the content is sent compressed by the server and automatically decompressed by the client: theContent-Lengthheader will be removed.Similarly, the Content-Encodingheader may be removed or modified, as the content is decoded by the client.- Specified by:
- getHeadersin interface- Response
- Returns:
- the headers of this response
 
- 
clearHeaderspublic void clearHeaders()
- 
addHeader
- 
headers
- 
getListeners- Specified by:
- getListenersin interface- Response
- Type Parameters:
- T- the type of class
- Parameters:
- type- the listener class
- Returns:
- the response listener passed to Request.send(org.eclipse.jetty.client.api.Response.CompleteListener)
 
- 
getTrailers
- 
trailer
- 
abortDescription copied from interface:ResponseAttempts to abort the receive of this response.
- 
toString
 
-