Interface HttpObject

All Known Subinterfaces:
HttpData, HttpHeaders, RequestHeaders, ResponseHeaders

public interface HttpObject
The common interface for HTTP/2 message objects, HttpHeaders and HttpData.
  • Method Summary

    Modifier and Type Method Description
    boolean isEndOfStream()
    Tells whether the stream should be ended when writing this object.
  • Method Details

    • isEndOfStream

      boolean isEndOfStream()
      Tells whether the stream should be ended when writing this object. This can be useful for HttpHeaders-only responses or to more efficiently close the stream along with the last piece of HttpData. This only has meaning for HttpObject writers, not readers.