Package com.linecorp.armeria.common
Interface HttpObject
-
- All Known Subinterfaces:
HttpData
,HttpHeaders
,RequestHeaders
,ResponseHeaders
- All Known Implementing Classes:
AbstractHttpData
,ByteBufHttpData
,DefaultHttpData
public interface HttpObject
The common interface for HTTP/2 message objects,HttpHeaders
andHttpData
.
-
-
Method Summary
Modifier and Type Method Description boolean
isEndOfStream()
Tells whether the stream should be ended when writing this object.
-
-
-
Method Detail
-
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.
-
-