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

Method maxHeaderStringLen

internal/http2/frame.go:1549–1556  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1547}
1548
1549func (fr *Framer) maxHeaderStringLen() int {
1550 v := int(fr.maxHeaderListSize())
1551 if v < 0 {
1552 // If maxHeaderListSize overflows an int, use no limit (0).
1553 return 0
1554 }
1555 return v
1556}
1557
1558// readMetaFrame returns 0 or more CONTINUATION frames from fr and
1559// merge them into the provided hf and returns a MetaHeadersFrame

Callers 1

readMetaFrameMethod · 0.95

Calls 1

maxHeaderListSizeMethod · 0.95

Tested by

no test coverage detected