Versions in this module Expand all Collapse all v2 v2.0.2 Jan 9, 2023 Changes in this version + const Namespace + var ErrInvalidStatusCode = errors.New("invalid status code") + func DefaultHTTPStatusHandler(_ context.Context, resp *http.Response) (*http.Response, error) + func ErrorHTTPStatusHandler(ctx context.Context, resp *http.Response) (*http.Response, error) + func NewHTTPClient(_ 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 Other modules containing this package github.com/podliy16/krakend