sizedstream

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: 5 Imported by: 0

Documentation

Overview

Package sizedstream buffers a response body stream that declares its length.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(resp *fasthttp.Response, n int) bool

Read reads the body stream of resp, which declares n bytes, into its body and reports whether exactly n arrived without error. Response.Body reads to the end and keeps a read error as the body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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