httpx

package
v0.0.2-beta.1 Latest Latest
Warning

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

Go to latest
Published: Feb 23, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GetClient = func() *Client {
	return &Client{
		cli: resty.New(),
	}
}

Functions

This section is empty.

Types

type Client

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

func (*Client) Get

func (i *Client) Get(ctx context.Context, url string, req any, bindResp any) (err error)

func (*Client) Post

func (i *Client) Post(ctx context.Context, url string, req any, bindResp any) (err error)

func (*Client) SetAuthToken

func (i *Client) SetAuthToken(token string) *Client

func (*Client) SetHeader

func (i *Client) SetHeader(key, val string) *Client

Jump to

Keyboard shortcuts

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