Package org.eclipse.jetty.http
Class MetaData.Response
java.lang.Object
org.eclipse.jetty.http.MetaData
org.eclipse.jetty.http.MetaData.Response
- Enclosing class:
- MetaData
Immutable HTTP response information.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.eclipse.jetty.http.MetaData
MetaData.ConnectRequest, MetaData.Request, MetaData.Response
-
Constructor Summary
ConstructorDescriptionResponse
(int status, String reason, HttpVersion version, HttpFields headers) Response
(int status, String reason, HttpVersion version, HttpFields headers, long contentLength) Response
(int status, String reason, HttpVersion version, HttpFields headers, long contentLength, Supplier<HttpFields> trailers) -
Method Summary
Methods inherited from class org.eclipse.jetty.http.MetaData
getContentLength, getHttpFields, getHttpVersion, getTrailersSupplier, isRequest, isTunnel, iterator
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
Response
-
Response
public Response(int status, String reason, HttpVersion version, HttpFields headers, long contentLength) -
Response
public Response(int status, String reason, HttpVersion version, HttpFields headers, long contentLength, Supplier<HttpFields> trailers)
-
-
Method Details
-
isResponse
public boolean isResponse()- Overrides:
isResponse
in classMetaData
- Returns:
- whether this object is a
MetaData.Response
-
getStatus
public int getStatus()- Returns:
- the HTTP status
-
getReason
- Returns:
- the HTTP reason
-
toString
-