Package com.linecorp.armeria.common
Interface RequestEntity<T>
- All Superinterfaces:
HttpEntity<T>
An entity of an HTTP request.
-
Method Summary
Modifier and TypeMethodDescriptionheaders()
Returns theRequestHeaders
of this request.default HttpMethod
method()
Returns theHttpMethod
of this request.static RequestEntity<Void>
of
(RequestHeaders headers) Returns a newly createdRequestEntity
with the specifiedRequestHeaders
.static <T> RequestEntity<T>
of
(RequestHeaders headers, T content) static <T> RequestEntity<T>
of
(RequestHeaders headers, T content, HttpHeaders trailers) Methods inherited from interface com.linecorp.armeria.common.HttpEntity
content, hasContent, trailers
-
Method Details
-
of
Returns a newly createdRequestEntity
with the specifiedRequestHeaders
. -
of
-
of
-
headers
RequestHeaders headers()Returns theRequestHeaders
of this request.- Specified by:
headers
in interfaceHttpEntity<T>
-
method
Returns theHttpMethod
of this request.
-