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

Method Data

internal/http2/frame.go:650–653  ·  view source on GitHub ↗

Data returns the frame's data octets, not including any padding size byte or padding suffix bytes. The caller must not retain the returned memory past the next call to ReadFrame.

()

Source from the content-addressed store, hash-verified

648// The caller must not retain the returned memory past the next
649// call to ReadFrame.
650func (f *DataFrame) Data() []byte {
651 f.checkValid()
652 return f.data
653}
654
655func parseDataFrame(fc *frameCache, fh FrameHeader, countError func(string), payload []byte) (Frame, error) {
656 if fh.StreamID == 0 {

Callers 3

processDataMethod · 0.80
TestFramerWriteReadDataFunction · 0.80
summarizeFrameFunction · 0.80

Calls 1

checkValidMethod · 0.80

Tested by 1

TestFramerWriteReadDataFunction · 0.64