Package io.micronaut.http
Class HttpResponseWrapper<B>
java.lang.Object
io.micronaut.http.HttpMessageWrapper<B>
io.micronaut.http.HttpResponseWrapper<B>
- Type Parameters:
B
- The Http body type
- All Implemented Interfaces:
AttributeHolder
,MutableAttributeHolder
,HttpMessage<B>
,HttpResponse<B>
- Direct Known Subclasses:
ByteBodyHttpResponseWrapper
A wrapper around a
HttpResponse
.- Since:
- 1.0.1
-
Constructor Summary
-
Method Summary
Methods inherited from class io.micronaut.http.HttpMessageWrapper
getAttributes, getBody, getBody, getBody, getBody, getHeaders
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttribute
Methods inherited from interface io.micronaut.http.HttpMessage
getAttributes, getBody, getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getHeaders, getLocale
Methods inherited from interface io.micronaut.http.HttpResponse
body, getCookie, getCookies, getStatus, header, setAttribute, status, toMutableResponse
Methods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttribute
-
Constructor Details
-
HttpResponseWrapper
- Parameters:
delegate
- The Http Request
-
-
Method Details
-
code
public int code()- Specified by:
code
in interfaceHttpResponse<B>
- Returns:
- The response status code
-
reason
- Specified by:
reason
in interfaceHttpResponse<B>
- Returns:
- The HTTP status reason phrase
-
getDelegate
- Overrides:
getDelegate
in classHttpMessageWrapper<B>
- Returns:
- The Http message
-