httpx

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 30, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIError

type APIError struct {
	StatusCode int
	Message    string
}

func (*APIError) Error

func (e *APIError) Error() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

func New

func New(cfg Config) (*Client, error)

func (*Client) DoJSON

func (c *Client) DoJSON(ctx context.Context, path string, query url.Values, headers map[string]string, out any) error

type Config

type Config struct {
	BaseURL           string
	Timeout           time.Duration
	UserAgent         string
	AuthHeader        string
	MinInterval       time.Duration
	MaxRetries        int
	ResponseSize      int64
	HTTPClient        *http.Client
	AllowHTTP         bool
	AllowPrivateHosts bool
}

Jump to

Keyboard shortcuts

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