httpclient

package
v1.33.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func New

func New(ctx context.Context, moduleName string) *Client

func (*Client) Get

func (c *Client) Get(path string) (res Response, err error)

func (*Client) Post

func (c *Client) Post(path, bodyType string, reader io.Reader) (res Response, err error)

func (*Client) PostForm

func (c *Client) PostForm(path string, data url.Values) (res Response, err error)

func (*Client) PostJSON

func (c *Client) PostJSON(path string, src interface{}) (res Response, err error)

func (*Client) URL

func (c *Client) URL(path string) string

type Response

type Response struct {
	*http.Response
}

func (*Response) Text

func (r *Response) Text() string

Returns body as a string

Jump to

Keyboard shortcuts

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