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

Method WriteRawFrame

internal/http2/frame.go:1426–1430  ·  view source on GitHub ↗

WriteRawFrame writes a raw frame. This can be used to write extension frames unknown to this package.

(t FrameType, flags Flags, streamID uint32, payload []byte)

Source from the content-addressed store, hash-verified

1424// WriteRawFrame writes a raw frame. This can be used to write
1425// extension frames unknown to this package.
1426func (h2f *Framer) WriteRawFrame(t FrameType, flags Flags, streamID uint32, payload []byte) error {
1427 h2f.startWrite(t, flags, streamID)
1428 h2f.writeBytes(payload)
1429 return h2f.endWrite()
1430}
1431
1432func readByte(p []byte) (remain []byte, b byte, err error) {
1433 if len(p) == 0 {

Callers

nothing calls this directly

Calls 3

startWriteMethod · 0.95
writeBytesMethod · 0.95
endWriteMethod · 0.95

Tested by

no test coverage detected