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

Method WritePing

internal/http2/frame.go:929–937  ·  view source on GitHub ↗
(ack bool, data [8]byte)

Source from the content-addressed store, hash-verified

927}
928
929func (h2f *Framer) WritePing(ack bool, data [8]byte) error {
930 var flags Flags
931 if ack {
932 flags = FlagPingAck
933 }
934 h2f.startWrite(FramePing, flags, 0)
935 h2f.writeBytes(data[:])
936 return h2f.endWrite()
937}
938
939// A GoAwayFrame informs the remote peer to stop creating streams on this connection.
940// See https://httpwg.org/specs/rfc7540.html#rfc.section.6.8

Callers 3

TestFramerWriteReadPingFunction · 0.95
PingMethod · 0.80
processPingMethod · 0.80

Calls 3

startWriteMethod · 0.95
writeBytesMethod · 0.95
endWriteMethod · 0.95

Tested by 1

TestFramerWriteReadPingFunction · 0.76