Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/dgrr/http2
/ AcquireFrame
Function
AcquireFrame
frame.go:119–124 ·
view source on GitHub ↗
(ftype FrameType)
Source
from the content-addressed store, hash-verified
117
}()
118
119
func
AcquireFrame(ftype FrameType) Frame {
120
fr := framePools[ftype].Get().(Frame)
121
fr.Reset()
122
123
return
fr
124
}
125
126
func
ReleaseFrame(fr Frame) {
127
framePools[fr.Type()].Put(fr)
Callers
15
makeHeaders
Function · 0.85
writePing
Method · 0.85
writeReset
Method · 0.85
writeGoAway
Method · 0.85
handleEndRequest
Method · 0.85
Write
Method · 0.85
ReadFrom
Method · 0.85
writeData
Method · 0.85
handleSettings
Method · 0.85
Handshake
Function · 0.85
doHandshake
Method · 0.85
Close
Method · 0.85
Calls
1
Reset
Method · 0.65
Tested by
2
makeHeaders
Function · 0.68
TestFrameWrite
Function · 0.68