Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.
32
func
WritePreface(wr io.Writer) error {
33
_, err := wr.Write(http2Preface)
34
return
err
35
}
Callers
1
Handshake
Function · 0.85
Calls
1
Write
Method · 0.45
Tested by
no test coverage detected