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

Struct DataFrame

internal/http2/frame.go:637–640  ·  view source on GitHub ↗

A DataFrame conveys arbitrary, variable-length sequences of octets associated with a stream. See https://httpwg.org/specs/rfc7540.html#rfc.section.6.1

Source from the content-addressed store, hash-verified

635// associated with a stream.
636// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.1
637type DataFrame struct {
638 FrameHeader
639 data []byte
640}
641
642func (f *DataFrame) StreamEnded() bool {
643 return f.FrameHeader.Flags.Has(FlagDataEndStream)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected