Documentation
¶
Overview ¶
Package httpclient provides custom http client module.
Index ¶
- func New(opts ...option) *http.Client
- func NewTransport(opts ...option) (t http.RoundTripper)
- func WithDisableOpenTelemetry() option
- func WithInsecure(insecure ...bool) option
- func WithKeepAliveInterval(interval time.Duration) option
- func WithKeepAliveMax(max int) option
- func WithKeepAliveTimeout(duration time.Duration) option
- func WithLogger(l *slog.Logger, opts ...logOption) option
- func WithMaxBodySize(maxSize int) logOption
- func WithProxyURL(u *url.URL) option
- func WithTLSCertificate(cert, key []byte) option
- func WithTimeout(timeout time.Duration) option
- func WithUserAgent(ua string) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTransport ¶
func NewTransport(opts ...option) (t http.RoundTripper)
func WithDisableOpenTelemetry ¶
func WithDisableOpenTelemetry() option
func WithInsecure ¶
func WithInsecure(insecure ...bool) option
func WithKeepAliveInterval ¶
func WithKeepAliveMax ¶
func WithKeepAliveMax(max int) option
func WithKeepAliveTimeout ¶
func WithLogger ¶
func WithMaxBodySize ¶
func WithMaxBodySize(maxSize int) logOption
func WithProxyURL ¶
func WithTLSCertificate ¶
func WithTLSCertificate(cert, key []byte) option
func WithTimeout ¶
func WithUserAgent ¶
func WithUserAgent(ua string) option
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.