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

Method init

internal/http2/flow.go:22–24  ·  view source on GitHub ↗

init sets the initial window.

(n int32)

Source from the content-addressed store, hash-verified

20
21// init sets the initial window.
22func (f *inflow) init(n int32) {
23 f.avail = n
24}
25
26// add adds n bytes to the window, with a maximum window size of max,
27// indicating that the peer can now send us more data.

Callers 6

TestInflowInitFunction · 0.95
TestInflowTakeFunction · 0.95
TestInflowAddFunction · 0.95
TestTakeInflowsFunction · 0.95
newClientConnMethod · 0.45
addStreamLockedMethod · 0.45

Calls

no outgoing calls

Tested by 4

TestInflowInitFunction · 0.76
TestInflowTakeFunction · 0.76
TestInflowAddFunction · 0.76
TestTakeInflowsFunction · 0.76