Interface HttpEntity<T>

All Known Subinterfaces:
RequestEntity<T>, ResponseEntity<T>

@UnstableApi @Nullable public interface HttpEntity<T>
An entity of an HTTP message.
  • Method Details

    • headers

      HttpHeaders headers()
      Returns the HttpHeaders 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()
      Returns true if this entity has content.
    • trailers

      HttpHeaders trailers()
      Returns the trailers of this entity.