Package com.linecorp.armeria.common
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 TypeMethodDescriptionboolean
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 forHttpHeaders
-only responses or to more efficiently close the stream along with the last piece ofHttpData
. This only has meaning forHttpObject
writers, not readers.
-