Documentation ¶
Index ¶
- Variables
- func AssignTransport(c *http.Client, fn func(t *http.Transport))
- func Client() *resty.Client
- func HttpClientTransport(c *http.Client) (*http.Transport, error)
- func RandUseragent() string
- func SetTransport(c *http.Client, transport *http.Transport)
- func SetTransportDialer(c *http.Client, dialer proxy.ContextDialer)
- type Resty
Constants ¶
This section is empty.
Variables ¶
View Source
var RestyClient = new(Resty)
Functions ¶
func SetTransportDialer ¶
func SetTransportDialer(c *http.Client, dialer proxy.ContextDialer)
SetTransportDialer ...
Types ¶
type Resty ¶
type Resty struct { Logger resty.Logger `inject:""` // contains filtered or unexported fields }
func (*Resty) Constructor ¶
func (r *Resty) Constructor()
func (*Resty) ResponseEnsureOK ¶
Click to show internal directories.
Click to hide internal directories.