package
1.6.0
Repository: https://github.com/facily-tech/go-core.git
Documentation: pkg.go.dev

# Functions

NewHTTPClient crate a new *http.Client with Config fields set.
NewLogTripper creates a new HeaderTripper using parent http.RoundTripper with log logger and will log responses bodies if no acceptedSatusCodes match (regex are accepted).
WithLogger wrap http client transport with log.

# Constants

PrefixHTTP is the env prefix of Config environment variables.

# Structs

Config of the http client.
HeaderTripper wrap http.RoundTripper to enrich with log.