Internal
internal/bodystream
import "github.com/gofiber/fiber/v3/internal/bodystream"
Package bodystream buffers a streamed request body within a size limit.
Functions
func Buffer(req *fasthttp.Request, limit int) error
Source: internal/bodystream/bodystream.go:24
Buffer reads a streamed body into req, since fasthttp's Body and PostArgs drain one whatever its size and keep a read error as the body. Past limit (<= 0 is none) it fails with fasthttp.ErrBodyTooLarge; a failure is final.
func MultipartForm(req *fasthttp.Request, limit int) (*multipart.Form, error)
Source: internal/bodystream/bodystream.go:48
MultipartForm is req.MultipartFormWithLimit, except that a failed parse of a streamed body is final: fasthttp leaves the stream where the parse stopped, and the next read would take the rest of the body for a new form or the body.