client package - github.com/ddo/rq/client - Go Packages

This section is empty.

DefaultCheckRedirect returns http.Client.CheckRedirect func with defaultRedirects

DefaultClient has default timeout and stdlib default transport no cookie management

NoCheckRedirect returns http.Client.CheckRedirect func with no redirect

func ApplyDefaultRq(defaultRq, _rq *rq.Rq) (newRq *rq.Rq)

ApplyDefaultRq overrides Rq properties with default value if key is not set

RedirectAfterN returns http.Client.CheckRedirect func

Send is the wrapper of #Send but use the default client

Client contains stdlib http client and other custom client settings

func New(opt *Option) *Client

New returns new client which init with provided options

Send sends the request and read it if read is true remember to close the res.Body if read is false Send also set content-type to application/x-www-form-urlencoded if form is available

SetProxy sets client proxy by url string if url is empty, no proxy is used

func (c *Client) UnSetProxy()

UnSetProxy unsets client proxy

Option contains client settings