MCPcopy
hub / github.com/labstack/echo / Read

Method Read

middleware/body_limit.go:83–90  ·  view source on GitHub ↗
(b []byte)

Source from the content-addressed store, hash-verified

81}
82
83func (r *limitedReader) Read(b []byte) (n int, err error) {
84 n, err = r.reader.Read(b)
85 r.read += int64(n)
86 if r.read > r.LimitBytes {
87 return n, echo.ErrStatusRequestEntityTooLarge
88 }
89 return
90}
91
92func (r *limitedReader) Close() error {
93 return r.reader.Close()

Callers 2

TestBodyLimitReaderFunction · 0.95

Calls

no outgoing calls

Tested by 2

TestBodyLimitReaderFunction · 0.76