View definition

(*Response).ReadLimitBody

Defined in github.com/valyala/fasthttp/http.go

Description

ReadLimitBody reads response from the given r, limiting the body size.

If maxBodySize > 0 and the body size exceeds maxBodySize, then ErrBodyTooLarge is returned.

io.EOF is returned if r is closed before reading the first header byte.

ReadLimitBody is referenced in 1 repository

github.com/valyala/fasthttp