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

Method startWrite

internal/http2/frame.go:347–359  ·  view source on GitHub ↗
(ftype FrameType, flags Flags, streamID uint32)

Source from the content-addressed store, hash-verified

345}
346
347func (h2f *Framer) startWrite(ftype FrameType, flags Flags, streamID uint32) {
348 // Write the FrameHeader.
349 h2f.wbuf = append(h2f.wbuf[:0],
350 0, // 3 bytes of length, filled in in endWrite
351 0,
352 0,
353 byte(ftype),
354 byte(flags),
355 byte(streamID>>24),
356 byte(streamID>>16),
357 byte(streamID>>8),
358 byte(streamID))
359}
360
361func (h2f *Framer) endWrite() error {
362 // Now that we know the final size, fill in the FrameHeader in

Callers 12

startWriteDataPaddedMethod · 0.95
WriteSettingsMethod · 0.95
WriteSettingsAckMethod · 0.95
WritePingMethod · 0.95
WriteGoAwayMethod · 0.95
WriteWindowUpdateMethod · 0.95
WriteHeadersMethod · 0.95
WritePriorityMethod · 0.95
WriteRSTStreamMethod · 0.95
WriteContinuationMethod · 0.95
WritePushPromiseMethod · 0.95
WriteRawFrameMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected