httpclient

package
v0.0.0-...-76ee762 Latest Latest
Warning

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

Go to latest
Published: Jun 12, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpClient

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

func NewHttpClient

func NewHttpClient(timeout time.Duration) *HttpClient

func (*HttpClient) Get

func (c *HttpClient) Get(url string) (*http.Response, error)

func (*HttpClient) Post

func (c *HttpClient) Post(url string, body io.Reader) (*http.Response, error)

func (*HttpClient) SetCookies

func (c *HttpClient) SetCookies(cookies []*http.Cookie)

func (*HttpClient) SetHeader

func (c *HttpClient) SetHeader(key, value string)

Jump to

Keyboard shortcuts

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