MCPcopy
hub / github.com/pingc0y/URLFinder / ReadAllLimited

Function ReadAllLimited

util/utils.go:136–138  ·  view source on GitHub ↗
(r io.Reader)

Source from the content-addressed store, hash-verified

134}
135
136func ReadAllLimited(r io.Reader) ([]byte, error) {
137 return readAllLimited(r, MaxResponseBodySize)
138}
139
140func readAllLimited(r io.Reader, max int64) ([]byte, error) {
141 data, err := io.ReadAll(io.LimitReader(r, max+1))

Callers 4

SpiderFunction · 0.92
JsStateFunction · 0.92
UrlStateFunction · 0.92
fuzzGetFunction · 0.92

Calls 1

readAllLimitedFunction · 0.85

Tested by

no test coverage detected