httpx

package
v0.3.12 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InsecureSSL

func InsecureSSL(v bool)

func NewRequest

func NewRequest(ctx context.Context, method string, url string, opts ...Option) (*http.Request, error)

Types

type Caller

type Caller struct {
	Client    *http.Client
	Request   *http.Request
	Unmarshal func(status int, body []byte, i interface{}) error
}

func (*Caller) Do

func (c *Caller) Do(dst interface{}) error

type Option

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

define a real type of Option, to make sure the type is exactly what we want.

func WithBody

func WithBody(d []byte) Option

func WithCallback added in v0.3.9

func WithCallback(f func(*http.Request)) Option

func WithHeaders

func WithHeaders(headers map[string]string) Option

Jump to

Keyboard shortcuts

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