Package com.linecorp.armeria.common
Interface AggregatedHttpObject
- All Known Subinterfaces:
AggregatedBodyPart
,AggregatedHttpMessage
,AggregatedHttpRequest
,AggregatedHttpResponse
public interface AggregatedHttpObject
A complete HTTP headers and content that are readily available.
-
Method Summary
Modifier and TypeMethodDescriptioncontent()
Returns the content of this message.default String
default String
Returns the content of this message as an ASCII string.Returns the value of the'content-type'
header.default String
Returns the content of this message as a UTF-8 string.headers()
Returns the HTTP headers.
-
Method Details
-
headers
HttpHeaders headers()Returns the HTTP headers. -
content
HttpData content()Returns the content of this message. -
content
-
contentUtf8
Returns the content of this message as a UTF-8 string. -
contentAscii
Returns the content of this message as an ASCII string. -
contentType
Returns the value of the'content-type'
header.- Returns:
- the valid header value if present, or
null
otherwise.
-