copybody

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: May 21, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CopyReqBody

func CopyReqBody(src *http.Request, dest *http.Request)

CopyReqBody copies the request body into a destination request. this allows reading a request body multiple times without "closing" it

func CopyRespBody

func CopyRespBody(resp *http.Response) io.ReadCloser

CopyRespBody copies the response body and returns a new response with the copied body. this allows reading a response body multiple times without "closing" it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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