httptools

package
v0.21.7 Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2021 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WrapRoundTripper

func WrapRoundTripper(rt http.RoundTripper, f func(r *http.Request)) http.RoundTripper

WrapRoundTripper deep clones a request a passes it to f before calling the underlying RoundTripper. If rt is nil, it calls http.DefaultTransport.

func WrapTransport

func WrapTransport(c *http.Client, f func(r *http.Request))

WrapTransport sets c.Transport to a WrapRoundTripper.

Types

This section is empty.

Jump to

Keyboard shortcuts

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