httpintercept

package
v0.20.0 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2025 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InterceptFunc

type InterceptFunc func(*http.Request) (*http.Response, error)

type Interceptor

type Interceptor struct {
	// contains filtered or unexported fields
}

func NewInterceptor

func NewInterceptor(origTransport http.RoundTripper) *Interceptor

func (*Interceptor) AddInterceptorFunc

func (i *Interceptor) AddInterceptorFunc(url string, f InterceptFunc)

func (*Interceptor) Cleanup

func (i *Interceptor) Cleanup()

func (*Interceptor) RoundTrip

func (i *Interceptor) RoundTrip(req *http.Request) (*http.Response, error)

Jump to

Keyboard shortcuts

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