Package com.linecorp.armeria.common
Interface HttpEntity<T>
- All Known Subinterfaces:
RequestEntity<T>
,ResponseEntity<T>
An entity of an HTTP message.
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
Returns the content of this entity.boolean
Returnstrue
if this entity has content.headers()
Returns theHttpHeaders
of this entity.trailers()
Returns the trailers of this entity.
-
Method Details
-
headers
HttpHeaders headers()Returns theHttpHeaders
of this entity. -
content
T content()Returns the content of this entity.- Throws:
NoHttpContentException
- if this entity doesn't have any content.
-
hasContent
boolean hasContent()Returnstrue
if this entity has content. -
trailers
HttpHeaders trailers()Returns the trailers of this entity.
-