http

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2024 License: MIT Imports: 5 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() *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