MCPcopy Create free account
hub / github.com/dgrr/http2 / WritePreface

Function WritePreface

http2.go:32–35  ·  view source on GitHub ↗

WritePreface writes HTTP/2 preface to the wr.

(wr io.Writer)

Source from the content-addressed store, hash-verified

30
31// WritePreface writes HTTP/2 preface to the wr.
32func WritePreface(wr io.Writer) error {
33 _, err := wr.Write(http2Preface)
34 return err
35}

Callers 1

HandshakeFunction · 0.85

Calls 1

WriteMethod · 0.45

Tested by

no test coverage detected