@UnstableApi public final class DefaultHttp2HeadersFrame extends AbstractHttp2StreamFrame implements Http2HeadersFrame
Http2HeadersFrame
implementation.构造器和说明 |
---|
DefaultHttp2HeadersFrame(Http2Headers headers)
Equivalent to
new DefaultHttp2HeadersFrame(headers, false) . |
DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream)
Equivalent to
new DefaultHttp2HeadersFrame(headers, endStream, 0) . |
DefaultHttp2HeadersFrame(Http2Headers headers,
boolean endStream,
int padding)
Construct a new headers message.
|
限定符和类型 | 方法和说明 |
---|---|
boolean |
equals(java.lang.Object o)
Returns
true if o has equal stream to this object. |
int |
hashCode() |
Http2Headers |
headers()
A complete header list.
|
boolean |
isEndStream()
Returns
true if the END_STREAM flag is set. |
java.lang.String |
name()
Returns the name of the HTTP/2 frame e.g.
|
int |
padding()
Frame padding to use.
|
DefaultHttp2HeadersFrame |
stream(Http2FrameStream stream)
Set the
Http2FrameStream object for this frame. |
java.lang.String |
toString() |
stream
stream
public DefaultHttp2HeadersFrame(Http2Headers headers)
new DefaultHttp2HeadersFrame(headers, false)
.headers
- the non-null
headers to sendpublic DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream)
new DefaultHttp2HeadersFrame(headers, endStream, 0)
.headers
- the non-null
headers to sendpublic DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding)
headers
- the non-null
headers to sendendStream
- whether these headers should terminate the streampadding
- additional bytes that should be added to obscure the true content size. Must be between 0 and
256 (inclusive).public DefaultHttp2HeadersFrame stream(Http2FrameStream stream)
Http2StreamFrame
Http2FrameStream
object for this frame.stream
在接口中 Http2StreamFrame
stream
在类中 AbstractHttp2StreamFrame
public java.lang.String name()
Http2Frame
name
在接口中 Http2Frame
public Http2Headers headers()
Http2HeadersFrame
headers
在接口中 Http2HeadersFrame
public boolean isEndStream()
Http2HeadersFrame
true
if the END_STREAM flag is set.isEndStream
在接口中 Http2HeadersFrame
public int padding()
Http2HeadersFrame
padding
在接口中 Http2HeadersFrame
public java.lang.String toString()
toString
在类中 java.lang.Object
public boolean equals(java.lang.Object o)
AbstractHttp2StreamFrame
true
if o
has equal stream
to this object.equals
在类中 AbstractHttp2StreamFrame
public int hashCode()
hashCode
在类中 AbstractHttp2StreamFrame