client

package
v0.0.0-...-a8f6791 Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Headers

func Headers(url *urlpkg.URL, headers map[string]string) (map[string]string, error)

Types

type Client

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

func NewClient

func NewClient(config *config.Config) (*Client, error)

func (*Client) Get

func (c *Client) Get(url string, params map[string]string, headers map[string]string) (*http.Response, error)

func (*Client) Post

func (c *Client) Post(url string, body io.Reader, headers map[string]string) (*http.Response, error)

Jump to

Keyboard shortcuts

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