httpclient

package
v1.9.2 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewHTTPClient

func NewHTTPClient(opts ...Opt) *http.Client

Types

type HTTPOptions

type HTTPOptions struct {
	Header http.Header
}

type Opt

type Opt func(*HTTPOptions)

func WithHeader

func WithHeader(key, value string) Opt

func WithModel

func WithModel(model string) Opt

func WithProvider

func WithProvider(provider string) Opt

func WithProxiedBaseURL

func WithProxiedBaseURL(value string) Opt

Jump to

Keyboard shortcuts

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