Interface AggregatedHttpObject

All Known Subinterfaces:
AggregatedBodyPart, com.linecorp.armeria.common.AggregatedHttpMessage, AggregatedHttpRequest, AggregatedHttpResponse

public interface AggregatedHttpObject
A complete HTTP headers and content that are readily available.
  • Method Details

    • headers

      HttpHeaders headers()
      Returns the HTTP headers.
    • content

      HttpData content()
      Returns the content of this message.
    • content

      default String content(Charset charset)
      Returns the content of this message as a string encoded in the specified Charset.
    • contentUtf8

      default String contentUtf8()
      Returns the content of this message as a UTF-8 string.
    • contentAscii

      default String contentAscii()
      Returns the content of this message as an ASCII string.
    • contentType

      @Nullable default @Nullable MediaType contentType()
      Returns the value of the 'content-type' header.
      Returns:
      the valid header value if present, or null otherwise.