Class HttpResponse
java.lang.Object
org.eclipse.jetty.client.transport.HttpResponse
- All Implemented Interfaces:
Response
-
Nested Class Summary
Nested classes/interfaces inherited from interface Response
Response.AsyncContentListener, Response.BeginListener, Response.CompleteListener, Response.ContentListener, Response.ContentSourceListener, Response.FailureListener, Response.HeaderListener, Response.HeadersListener, Response.Listener, Response.ResponseListener, Response.SuccessListener -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionAttempts to abort the receive of this response.voidReturns the headers of this response.intheaders(Consumer<HttpFields.Mutable> consumer) status(int status) toString()version(HttpVersion version)
-
Constructor Details
-
HttpResponse
-
-
Method Details
-
getRequest
- Specified by:
getRequestin interfaceResponse- Returns:
- the request associated with this response
-
getVersion
- Specified by:
getVersionin interfaceResponse- Returns:
- the HTTP version of this response, such as "HTTP/1.1"
-
version
-
getStatus
-
status
-
getReason
- Specified by:
getReasonin interfaceResponse- Returns:
- the HTTP reason associated to the
Response.getStatus()
-
reason
-
getHeaders
Description 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 interfaceResponse- Returns:
- the headers of this response
-
clearHeaders
public void clearHeaders() -
addHeader
-
headers
-
getTrailers
- Specified by:
getTrailersin interfaceResponse- Returns:
- the trailers of this response
-
trailer
-
abort
-
toString
-