MCPcopy Index your code
hub / github.com/NdoleStudio/httpsms / HTTPClient

Method HTTPClient

api/pkg/di/container.go:986–992  ·  view source on GitHub ↗

HTTPClient creates a new http.Client

(name string)

Source from the content-addressed store, hash-verified

984
985// HTTPClient creates a new http.Client
986func (container *Container) HTTPClient(name string) *http.Client {
987 container.logger.Debug(fmt.Sprintf("creating %s %T", name, http.DefaultClient))
988 return &http.Client{
989 Timeout: 60 * time.Second,
990 Transport: container.HTTPRoundTripper(name),
991 }
992}
993
994// HTTPRoundTripper creates an open telemetry http.RoundTripper
995func (container *Container) HTTPRoundTripper(name string) http.RoundTripper {

Callers 8

EmulatorEventsQueueMethod · 0.95
FCMClientMethod · 0.95
Integration3CXServiceMethod · 0.95
UserServiceMethod · 0.95
LemonsqueezyClientMethod · 0.95
DiscordClientMethod · 0.95
PlunkClientMethod · 0.95

Calls 2

HTTPRoundTripperMethod · 0.95
DebugMethod · 0.65

Tested by

no test coverage detected