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

Struct PushPromiseFrame

internal/http2/frame.go:1316–1320  ·  view source on GitHub ↗

A PushPromiseFrame is used to initiate a server stream. See https://httpwg.org/specs/rfc7540.html#rfc.section.6.6

Source from the content-addressed store, hash-verified

1314// A PushPromiseFrame is used to initiate a server stream.
1315// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.6
1316type PushPromiseFrame struct {
1317 FrameHeader
1318 PromiseID uint32
1319 headerFragBuf []byte // not owned
1320}
1321
1322func (f *PushPromiseFrame) HeaderBlockFragment() []byte {
1323 f.checkValid()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected