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

Method checkLen

frameHeader.go:261–266  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

259}
260
261func (f *FrameHeader) checkLen() error {
262 if f.maxLen != 0 && f.length > int(f.maxLen) {
263 return ErrPayloadExceeds
264 }
265 return nil
266}

Callers 1

readFromMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected