Documentation ¶
Index ¶
- type RequestClient
- func (rq *RequestClient) Get(url string, timeout time.Duration, headers map[string]string) (result string, status int, outHeaders http.Header)
- func (rq *RequestClient) GetCookie(host string, name string) string
- func (rq *RequestClient) GetHeader(key string) string
- func (rq *RequestClient) Post(url string, data string, timeout time.Duration, headers map[string]string) (result string, status int, outHeaders http.Header)
- func (rq *RequestClient) SetCookie(host string, name string, value string)
- func (rq *RequestClient) SetHeader(key string, value string)
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) GetCookie ¶
func (rq *RequestClient) GetCookie(host string, name string) string
func (*RequestClient) GetHeader ¶
func (rq *RequestClient) GetHeader(key string) string
func (*RequestClient) SetCookie ¶
func (rq *RequestClient) SetCookie(host string, name string, value string)
func (*RequestClient) SetHeader ¶
func (rq *RequestClient) SetHeader(key string, value string)
Click to show internal directories.
Click to hide internal directories.