httpclient

package
v0.0.0-...-cf36328 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2025 License: MIT Imports: 18 Imported by: 0

Documentation

Overview

Package httpclient provides custom http client module.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(opts ...option) *http.Client

func NewTransport

func NewTransport(opts ...option) (t http.RoundTripper)

func WithDisableOpenTelemetry

func WithDisableOpenTelemetry() option

func WithInsecure

func WithInsecure(insecure ...bool) option

func WithKeepAliveInterval

func WithKeepAliveInterval(interval time.Duration) option

func WithKeepAliveMax

func WithKeepAliveMax(max int) option

func WithKeepAliveTimeout

func WithKeepAliveTimeout(duration time.Duration) option

func WithLogger

func WithLogger(l *slog.Logger, opts ...logOption) option

func WithMaxBodySize

func WithMaxBodySize(maxSize int) logOption

func WithProxyURL

func WithProxyURL(u *url.URL) option

func WithTLSCertificate

func WithTLSCertificate(cert, key []byte) option

func WithTimeout

func WithTimeout(timeout time.Duration) option

func WithUserAgent

func WithUserAgent(ua string) option

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL