Lines Matching refs:Client

70 type Client struct {  struct
91 httpClient *http.Client argument
102 beforeRequest []func(*Client, *Request) error argument
103 udBeforeRequest []func(*Client, *Request) error argument
104 preReqHook func(*Client, *Request) error argument
105 afterResponse []func(*Client, *Response) error argument
127 func (c *Client) SetHostURL(url string) *Client { argument
143 func (c *Client) SetHeader(header, value string) *Client { argument
159 func (c *Client) SetHeaders(headers map[string]string) *Client { argument
173 func (c *Client) SetCookieJar(jar http.CookieJar) *Client { argument
190 func (c *Client) SetCookie(hc *http.Cookie) *Client { argument
222 func (c *Client) SetCookies(cs []*http.Cookie) *Client { argument
236 func (c *Client) SetQueryParam(param, value string) *Client { argument
251 func (c *Client) SetQueryParams(params map[string]string) *Client { argument
268 func (c *Client) SetFormData(data map[string]string) *Client { argument
285 func (c *Client) SetBasicAuth(username, password string) *Client { argument
300 func (c *Client) SetAuthToken(token string) *Client { argument
306 func (c *Client) R() *Request { argument
324 func (c *Client) NewRequest() *Request {
338 func (c *Client) OnBeforeRequest(m func(*Client, *Request) error) *Client {
353 func (c *Client) OnAfterResponse(m func(*Client, *Response) error) *Client { argument
362 func (c *Client) SetPreRequestHook(h func(*Client, *Request) error) *Client { argument
375 func (c *Client) SetDebug(d bool) *Client { argument
383 func (c *Client) SetDebugBodyLimit(sl int64) *Client { argument
390 func (c *Client) OnRequestLog(rl func(*RequestLog) error) *Client { argument
400 func (c *Client) OnResponseLog(rl func(*ResponseLog) error) *Client { argument
412 func (c *Client) SetDisableWarn(d bool) *Client { argument
421 func (c *Client) SetAllowGetMethodPayload(a bool) *Client { argument
432 func (c *Client) SetLogger(w io.Writer) *Client { argument
443 func (c *Client) SetContentLength(l bool) *Client { argument
451 func (c *Client) SetTimeout(timeout time.Duration) *Client { argument
463 func (c *Client) SetError(err interface{}) *Client { argument
476 func (c *Client) SetRedirectPolicy(policies ...interface{}) *Client { argument
498 func (c *Client) SetRetryCount(count int) *Client { argument
506 func (c *Client) SetRetryWaitTime(waitTime time.Duration) *Client { argument
514 func (c *Client) SetRetryMaxWaitTime(maxWaitTime time.Duration) *Client { argument
522 func (c *Client) AddRetryCondition(condition RetryConditionFunc) *Client { argument
528 func (c *Client) SetHTTPMode() *Client { argument
533 func (c *Client) SetRESTMode() *Client { argument
548 func (c *Client) SetMode(mode string) *Client { argument
553 c.afterResponse = []func(*Client, *Response) error{
563 c.afterResponse = []func(*Client, *Response) error{
573 func (c *Client) Mode() string { argument
590 func (c *Client) SetTLSClientConfig(config *tls.Config) *Client { argument
606 func (c *Client) SetProxy(proxyURL string) *Client { argument
626 func (c *Client) RemoveProxy() *Client { argument
639 func (c *Client) SetCertificates(certs ...tls.Certificate) *Client { argument
652 func (c *Client) SetRootCertificate(pemFilePath string) *Client { argument
678 func (c *Client) SetOutputDirectory(dirPath string) *Client { argument
702 func (c *Client) SetTransport(transport http.RoundTripper) *Client { argument
712 func (c *Client) SetScheme(scheme string) *Client { argument
722 func (c *Client) SetCloseConnection(close bool) *Client { argument
733 func (c *Client) SetDoNotParseResponse(parse bool) *Client { argument
739 func (c *Client) SetLogPrefix(prefix string) *Client { argument
757 func (c *Client) SetPathParams(params map[string]string) *Client { argument
767 func (c *Client) SetJSONEscapeHTML(b bool) *Client { argument
773 func (c *Client) IsProxySet() bool { argument
778 func (c *Client) GetClient() *http.Client { argument
787 func (c *Client) execute(req *Request) (*Response, error) { argument
868 func (c *Client) enableLogPrefix() { argument
874 func (c *Client) disableLogPrefix() { argument
880 func (c *Client) getTLSConfig() (*tls.Config, error) { argument
893 func (c *Client) getTransport() (*http.Transport, error) { argument