httpclient

package
v1.17.0 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 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 WithHeaders

func WithHeaders(headers map[string]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

func WithQuery(query url.Values) Opt

Jump to

Keyboard shortcuts

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