Versions in this module Expand all Collapse all v1 v1.0.3 Nov 8, 2021 v1.0.0 Nov 1, 2021 Changes in this version + const Namespace + var ErrInvalidStatusCode = errors.New("Invalid status code") + func DefaultHTTPStatusHandler(ctx context.Context, resp *http.Response) (*http.Response, error) + func ErrorHTTPStatusHandler(ctx context.Context, resp *http.Response) (*http.Response, error) + func NewHTTPClient(ctx context.Context) *http.Client + func NoOpHTTPStatusHandler(_ context.Context, resp *http.Response) (*http.Response, error) + type HTTPClientFactory func(ctx context.Context) *http.Client + type HTTPRequestExecutor func(ctx context.Context, req *http.Request) (*http.Response, error) + func DefaultHTTPRequestExecutor(clientFactory HTTPClientFactory) HTTPRequestExecutor + type HTTPResponseError struct + Code int + Msg string + func (r HTTPResponseError) Error() string + func (r HTTPResponseError) StatusCode() int + type HTTPStatusHandler func(context.Context, *http.Response) (*http.Response, error) + func DetailedHTTPStatusHandler(name string) HTTPStatusHandler + func GetHTTPStatusHandler(remote *config.Backend) HTTPStatusHandler + type NamedHTTPResponseError struct + func (r NamedHTTPResponseError) Name() string