public class ServletResponseFactory
extends java.lang.Object
implements io.micronaut.http.HttpResponseFactory
HttpResponseFactory
case that retrieves the
response object from the current request bound to the current thread.Constructor and Description |
---|
ServletResponseFactory() |
Modifier and Type | Method and Description |
---|---|
<T> io.micronaut.http.MutableHttpResponse<T> |
ok(T body) |
<T> io.micronaut.http.MutableHttpResponse<T> |
status(io.micronaut.http.HttpStatus status,
java.lang.String reason) |
<T> io.micronaut.http.MutableHttpResponse<T> |
status(io.micronaut.http.HttpStatus status,
T body) |
public <T> io.micronaut.http.MutableHttpResponse<T> ok(T body)
ok
in interface io.micronaut.http.HttpResponseFactory
public <T> io.micronaut.http.MutableHttpResponse<T> status(io.micronaut.http.HttpStatus status, java.lang.String reason)
status
in interface io.micronaut.http.HttpResponseFactory
public <T> io.micronaut.http.MutableHttpResponse<T> status(io.micronaut.http.HttpStatus status, T body)
status
in interface io.micronaut.http.HttpResponseFactory