MCPcopy Create free account
hub / github.com/imroc/req / HeadersFrame

Struct HeadersFrame

internal/http2/frame.go:1052–1059  ·  view source on GitHub ↗

A HeadersFrame is used to open a stream and additionally carries a header block fragment.

Source from the content-addressed store, hash-verified

1050// A HeadersFrame is used to open a stream and additionally carries a
1051// header block fragment.
1052type HeadersFrame struct {
1053 FrameHeader
1054
1055 // Priority is set if FlagHeadersPriority is set in the FrameHeader.
1056 Priority http2.PriorityParam
1057
1058 headerFragBuf []byte // not owned
1059}
1060
1061func (f *HeadersFrame) HeaderBlockFragment() []byte {
1062 f.checkValid()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected