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)
| 1424 | // WriteRawFrame writes a raw frame. This can be used to write |
| 1425 | // extension frames unknown to this package. |
| 1426 | func (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 | |
| 1432 | func readByte(p []byte) (remain []byte, b byte, err error) { |
| 1433 | if len(p) == 0 { |
nothing calls this directly
no test coverage detected