httpclientmiddleware

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Jan 11, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestMiddleware

type RequestMiddleware interface {
	Exec(next RequestModifier) RequestModifier
}

type RequestMiddlewareFunc

type RequestMiddlewareFunc func(next RequestModifier) RequestModifier

func (RequestMiddlewareFunc) Exec

type RequestModifier

type RequestModifier interface {
	Do(req *http.Request) (*http.Response, error)
}

type RequestModifierFunc

type RequestModifierFunc func(req *http.Request) (*http.Response, error)

func (RequestModifierFunc) Do

type ResponseHandler

type ResponseHandler interface {
	Handle(resp *http.Response, err error) (*http.Response, error)
}

type ResponseHandlerFunc

type ResponseHandlerFunc func(resp *http.Response, err error) (*http.Response, error)

func (ResponseHandlerFunc) Handle

func (m ResponseHandlerFunc) Handle(resp *http.Response, err error) (*http.Response, error)

type ResponseMiddleware

type ResponseMiddleware interface {
	Exec(next ResponseHandler) ResponseHandler
}

type ResponseMiddlewareFunc

type ResponseMiddlewareFunc func(next ResponseHandler) ResponseHandler

func (ResponseMiddlewareFunc) Exec

Jump to

Keyboard shortcuts

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