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
Constructors -
Method Summary
Methods inherited from class io.micronaut.http.HttpMessageWrapper
getAttributes, getBody, getBody, getBody, getBody, getHeadersMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.micronaut.core.attr.AttributeHolder
getAttribute, getAttributeMethods inherited from interface io.micronaut.http.HttpMessage
getAttributes, getBody, getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getHeaders, getLocaleMethods inherited from interface io.micronaut.http.HttpResponse
body, getCookie, getCookies, getStatus, header, setAttribute, status, toMutableResponseMethods 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:
codein interfaceHttpResponse<B>- Returns:
- The response status code
-
reason
- Specified by:
reasonin interfaceHttpResponse<B>- Returns:
- The HTTP status reason phrase
-
getDelegate
- Overrides:
getDelegatein classHttpMessageWrapper<B>- Returns:
- The Http message
-