utils

package
v0.137.0 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2022 License: Apache-2.0 Imports: 7 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ReadRequestBody

func ReadRequestBody(r *http.Request) ([]byte, error)

ReadRequestBody reads the request body without closing the req.Body.

func RoundTripper

func RoundTripper(req *http.Request, ctx *goproxy.ProxyCtx) (resp *http.Response, err error)

RoundTripper is a http.RoundTripper that can be used to proxy requests without consuming the req.Body.

Types

This section is empty.

Jump to

Keyboard shortcuts

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