httpclient

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package httpclient provides a default *http.Client for outbound HTTP, wrapped with otelhttp.NewTransport so spans propagate W3C TraceContext.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default(timeout time.Duration) *http.Client

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.

Types

This section is empty.

Jump to

Keyboard shortcuts

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