httpclient

package
v1.9.21 Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2025 License: Apache-2.0 Imports: 6 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
	Query  url.Values
}

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

func WithQuery added in v1.9.18

func WithQuery(query url.Values) Opt

Jump to

Keyboard shortcuts

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