package
Version:
v0.2.0
Opens a new window with list of versions in this module.
Published: May 3, 2026
License: MIT
Opens a new window with license information.
Imports: 4
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
Package httpclient provides a default *http.Client for outbound HTTP, wrapped
with otelhttp.NewTransport so spans propagate W3C TraceContext.
Default returns a fresh *http.Client with the given total timeout. Connect
timeout is fixed at 5s; idle connections recycle after 90s.
Each call returns a new client. http.Client is concurrency-safe, so callers
MAY share the result across goroutines but MUST NOT mutate it after use.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.