Versions in this module Expand all Collapse all v1 v1.4.1 Jun 8, 2021 v1.4.0 May 21, 2021 v0 v0.9.0 Apr 4, 2019 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 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) Name() string + func (r HTTPResponseError) StatusCode() int + type HTTPStatusHandler func(context.Context, *http.Response) (*http.Response, error) + func DetailedHTTPStatusHandler(next HTTPStatusHandler, name string) HTTPStatusHandler + func GetHTTPStatusHandler(remote *config.Backend) HTTPStatusHandler Other modules containing this package github.com/luraproject/lura/v2