requestclient

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RequestClient

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

func Create

func Create(parallel uint) RequestClient

func (*RequestClient) Get

func (rq *RequestClient) Get(url string, timeout time.Duration, headers map[string]string) (result string, status int, outHeaders http.Header)

func (*RequestClient) GetCookie

func (rq *RequestClient) GetCookie(host string, name string) string

func (*RequestClient) GetHeader

func (rq *RequestClient) GetHeader(key string) string

func (*RequestClient) Post

func (rq *RequestClient) Post(url string, data string, timeout time.Duration, headers map[string]string) (result string, status int, outHeaders http.Header)

func (*RequestClient) SetCookie

func (rq *RequestClient) SetCookie(host string, name string, value string)

func (*RequestClient) SetHeader

func (rq *RequestClient) SetHeader(key string, value string)

Jump to

Keyboard shortcuts

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