- java.lang.Object
- 
- io.netty5.handler.codec.http2.AbstractHttp2StreamFrame
- 
- io.netty5.handler.codec.http2.DefaultHttp2HeadersFrame
 
 
- 
- All Implemented Interfaces:
- Http2Frame,- Http2HeadersFrame,- Http2StreamFrame
 
 @UnstableApi public final class DefaultHttp2HeadersFrame extends AbstractHttp2StreamFrame implements Http2HeadersFrame The defaultHttp2HeadersFrameimplementation.
- 
- 
Constructor SummaryConstructors Constructor Description DefaultHttp2HeadersFrame(Http2Headers headers)Equivalent tonew DefaultHttp2HeadersFrame(headers, false).DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream)Equivalent tonew DefaultHttp2HeadersFrame(headers, endStream, 0).DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding)Construct a new headers message.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)Returnstrueifohas equalstreamto this object.inthashCode()Http2Headersheaders()A complete header list.booleanisEndStream()Returnstrueif the END_STREAM flag is set.Stringname()Returns the name of the HTTP/2 frame e.g.intpadding()Frame padding to use.DefaultHttp2HeadersFramestream(Http2FrameStream stream)Set theHttp2FrameStreamobject for this frame.StringtoString()- 
Methods inherited from class io.netty5.handler.codec.http2.AbstractHttp2StreamFramestream
 - 
Methods inherited from class java.lang.Objectclone, finalize, getClass, notify, notifyAll, wait, wait, wait
 - 
Methods inherited from interface io.netty5.handler.codec.http2.Http2StreamFramestream
 
- 
 
- 
- 
- 
Constructor Detail- 
DefaultHttp2HeadersFramepublic DefaultHttp2HeadersFrame(Http2Headers headers) Equivalent tonew DefaultHttp2HeadersFrame(headers, false).- Parameters:
- headers- the non-- nullheaders to send
 
 - 
DefaultHttp2HeadersFramepublic DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream) Equivalent tonew DefaultHttp2HeadersFrame(headers, endStream, 0).- Parameters:
- headers- the non-- nullheaders to send
 
 - 
DefaultHttp2HeadersFramepublic DefaultHttp2HeadersFrame(Http2Headers headers, boolean endStream, int padding) Construct a new headers message.- Parameters:
- headers- the non-- nullheaders to send
- endStream- whether these headers should terminate the stream
- padding- additional bytes that should be added to obscure the true content size. Must be between 0 and 256 (inclusive).
 
 
- 
 - 
Method Detail- 
streampublic DefaultHttp2HeadersFrame stream(Http2FrameStream stream) Description copied from interface:Http2StreamFrameSet theHttp2FrameStreamobject for this frame.- Specified by:
- streamin interface- Http2StreamFrame
- Overrides:
- streamin class- AbstractHttp2StreamFrame
 
 - 
namepublic String name() Description copied from interface:Http2FrameReturns the name of the HTTP/2 frame e.g. DATA, GOAWAY, etc.- Specified by:
- namein interface- Http2Frame
 
 - 
headerspublic Http2Headers headers() Description copied from interface:Http2HeadersFrameA complete header list. CONTINUATION frames are automatically handled.- Specified by:
- headersin interface- Http2HeadersFrame
 
 - 
isEndStreampublic boolean isEndStream() Description copied from interface:Http2HeadersFrameReturnstrueif the END_STREAM flag is set.- Specified by:
- isEndStreamin interface- Http2HeadersFrame
 
 - 
paddingpublic int padding() Description copied from interface:Http2HeadersFrameFrame padding to use. Must be non-negative and less than 256.- Specified by:
- paddingin interface- Http2HeadersFrame
 
 - 
equalspublic boolean equals(Object o) Description copied from class:AbstractHttp2StreamFrameReturnstrueifohas equalstreamto this object.- Overrides:
- equalsin class- AbstractHttp2StreamFrame
 
 - 
hashCodepublic int hashCode() - Overrides:
- hashCodein class- AbstractHttp2StreamFrame
 
 
- 
 
-