drainbody

package
v1.0.201 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DrainBody

func DrainBody(b io.ReadCloser) ([]byte, io.ReadCloser, error)

DrainBody reads all of b to memory and returns the bytes and a new ReadCloser. It returns an error if the initial slurp of all bytes fails. The returned bytes can be reused for retry support.

Types

This section is empty.

Jump to

Keyboard shortcuts

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