Class AzureFunctionHttpResponse<B>
java.lang.Object
io.micronaut.azure.function.http.AzureFunctionHttpResponse<B>
- Type Parameters:
B- Body Type
- All Implemented Interfaces:
io.micronaut.core.attr.AttributeHolder, io.micronaut.core.attr.MutableAttributeHolder, io.micronaut.http.HttpMessage<B>, io.micronaut.http.HttpResponse<B>, io.micronaut.http.MutableHttpMessage<B>, io.micronaut.http.MutableHttpResponse<B>, io.micronaut.servlet.http.ServletHttpResponse<com.microsoft.azure.functions.HttpResponseMessage, B>
@Internal
public final class AzureFunctionHttpResponse<B>
extends Object
implements io.micronaut.servlet.http.ServletHttpResponse<com.microsoft.azure.functions.HttpResponseMessage, B>
Azure implementation of
ServletHttpResponse.- Since:
- 5.0.0
- Author:
- Tim Yates
-
Constructor Summary
ConstructorsConstructorDescriptionAzureFunctionHttpResponse(com.microsoft.azure.functions.HttpRequestMessage<Optional<String>> azureRequest, io.micronaut.core.convert.ConversionService conversionService, io.micronaut.function.BinaryTypeConfiguration binaryTypeConfiguration) -
Method Summary
Modifier and TypeMethodDescription<T> io.micronaut.http.MutableHttpResponse<T> body(@Nullable T body) intcode()io.micronaut.http.MutableHttpResponse<B> cookie(io.micronaut.http.cookie.Cookie cookie) io.micronaut.core.convert.value.MutableConvertibleValues<Object> getBody()io.micronaut.http.MutableHttpHeaderscom.microsoft.azure.functions.HttpResponseMessagereason()io.micronaut.http.MutableHttpResponse<B> status(int status, CharSequence message) Methods inherited from class 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
getBody, getBody, getBody, getBodyWriter, getCharacterEncoding, getContentLength, getContentType, getLocaleMethods inherited from interface io.micronaut.http.HttpResponse
body, getCookie, getCookies, getStatus, header, setAttribute, statusMethods inherited from interface io.micronaut.core.attr.MutableAttributeHolder
removeAttributeMethods inherited from interface io.micronaut.http.MutableHttpMessage
basicAuth, bearerAuth, bodyWriterMethods inherited from interface io.micronaut.http.MutableHttpResponse
attribute, cacheControl, characterEncoding, characterEncoding, contentEncoding, contentLength, contentType, contentType, cookies, header, headers, headers, locale, status, status, status, toMutableResponseMethods inherited from interface io.micronaut.servlet.http.ServletHttpResponse
isCommitted, stream, stream
-
Constructor Details
-
AzureFunctionHttpResponse
-
-
Method Details
-
getOutputStream
- Specified by:
getOutputStreamin interfaceio.micronaut.servlet.http.ServletHttpResponse<com.microsoft.azure.functions.HttpResponseMessage, B>
-
getWriter
- Specified by:
getWriterin interfaceio.micronaut.servlet.http.ServletHttpResponse<com.microsoft.azure.functions.HttpResponseMessage, B>
-
cookie
-
getHeaders
-
getAttributes
- Specified by:
getAttributesin interfaceio.micronaut.core.attr.AttributeHolder- Specified by:
getAttributesin interfaceio.micronaut.http.HttpMessage<B>- Specified by:
getAttributesin interfaceio.micronaut.core.attr.MutableAttributeHolder
-
getBody
-
body
-
status
- Specified by:
statusin interfaceio.micronaut.http.MutableHttpResponse<B>
-
code
public int code()- Specified by:
codein interfaceio.micronaut.http.HttpResponse<B>
-
reason
-
getNativeResponse
public com.microsoft.azure.functions.HttpResponseMessage getNativeResponse()- Specified by:
getNativeResponsein interfaceio.micronaut.servlet.http.ServletHttpResponse<com.microsoft.azure.functions.HttpResponseMessage, B>
-