bodystream

package
v3.7.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package bodystream buffers a streamed request body within a size limit.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Buffer

func Buffer(req *fasthttp.Request, limit int) error

Buffer reads a streamed body into req, since fasthttp's Body and PostArgs drain one whatever its size. Past limit (<= 0 is none) it stops at limit+1 bytes and fails with fasthttp.ErrBodyTooLarge, now and later.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL