httpx

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Do

func Do(ctx context.Context, client *http.Client, spec Request) (*http.Response, error)

Do retries only transport failures and retryable HTTP statuses. The request body is immutable bytes so each attempt gets a fresh reader.

func NewClient

func NewClient() *http.Client

Types

type Request

type Request struct {
	Method  string
	URL     string
	Headers http.Header
	Body    []byte
	Retry   llmux.RetryPolicy
}

Jump to

Keyboard shortcuts

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