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

Method WriteGoAway

internal/http2/frame.go:974–980  ·  view source on GitHub ↗
(maxStreamID uint32, code ErrCode, debugData []byte)

Source from the content-addressed store, hash-verified

972}
973
974func (h2f *Framer) WriteGoAway(maxStreamID uint32, code ErrCode, debugData []byte) error {
975 h2f.startWrite(FrameGoAway, 0, 0)
976 h2f.writeUint32(maxStreamID & (1<<31 - 1))
977 h2f.writeUint32(uint32(code))
978 h2f.writeBytes(debugData)
979 return h2f.endWrite()
980}
981
982// An UnknownFrame is the frame type returned when the frame type is unknown
983// or no specific frame type parser exists.

Callers 3

sendGoAwayMethod · 0.80
readLoopMethod · 0.80

Calls 4

startWriteMethod · 0.95
writeUint32Method · 0.95
writeBytesMethod · 0.95
endWriteMethod · 0.95

Tested by 1