public interface SpdyHeadersFrame extends SpdyStreamFrame
限定符和类型 | 方法和说明 |
---|---|
SpdyHeaders |
headers()
Returns the
SpdyHeaders . |
boolean |
isInvalid()
Returns
true if this header block is invalid. |
boolean |
isTruncated()
Returns
true if this header block has been truncated due to
length restrictions. |
SpdyHeadersFrame |
setInvalid()
Marks this header block as invalid.
|
SpdyHeadersFrame |
setLast(boolean last)
Sets if this frame is the last frame to be transmitted on the stream.
|
SpdyHeadersFrame |
setStreamId(int streamID)
Sets the Stream-ID of this frame.
|
SpdyHeadersFrame |
setTruncated()
Mark this header block as truncated.
|
isLast, streamId
boolean isInvalid()
true
if this header block is invalid.
A RST_STREAM frame with code PROTOCOL_ERROR should be sent.SpdyHeadersFrame setInvalid()
boolean isTruncated()
true
if this header block has been truncated due to
length restrictions.SpdyHeadersFrame setTruncated()
SpdyHeaders headers()
SpdyHeaders
.SpdyHeadersFrame setStreamId(int streamID)
SpdyStreamFrame
setStreamId
在接口中 SpdyStreamFrame
SpdyHeadersFrame setLast(boolean last)
SpdyStreamFrame
setLast
在接口中 SpdyStreamFrame