Package com.linecorp.armeria.common
Interface ResponseEntity<T>
- All Superinterfaces:
HttpEntity<T>
An entity of an HTTP response.
-
Method Summary
Modifier and TypeMethodDescriptionheaders()
Returns theResponseHeaders
of this response.static ResponseEntity
<Void> of
(ResponseHeaders headers) Returns a newly createdResponseEntity
with the specifiedResponseHeaders
.static <T> ResponseEntity
<T> of
(ResponseHeaders headers, T content) static <T> ResponseEntity
<T> of
(ResponseHeaders headers, T content, HttpHeaders trailers) static <T> ResponseEntity
<T> of
(T content) default HttpStatus
status()
Returns theHttpStatus
of this response.Methods inherited from interface com.linecorp.armeria.common.HttpEntity
content, hasContent, trailers
-
Method Details
-
of
Returns a newly createdResponseEntity
with the specifiedResponseHeaders
. -
of
-
of
-
of
-
headers
ResponseHeaders headers()Returns theResponseHeaders
of this response.- Specified by:
headers
in interfaceHttpEntity<T>
-
status
Returns theHttpStatus
of this response.
-