http

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2025 License: MIT Imports: 6 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 NewClient

func NewClient(ctx context.Context) *Client

func (*Client) Get

func (c *Client) Get(url string, opts ...func(*http.Request)) ([]byte, error)

func (*Client) Post

func (c *Client) Post(url string, body []byte, opts ...func(*http.Request)) ([]byte, error)

Post sends a POST request to the given URL with the given body.

Jump to

Keyboard shortcuts

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