Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is the client for HTTP requests.
type Option ¶ added in v0.0.2
type Option interface {
Apply(cli *Client)
}
func WithGlobalTimeout ¶ added in v0.0.2
WithGlobalTimeout is the option that adds global timeout to the client.
Example:
WithGlobalTimeout(time.Second * 5)
func WithRateLimit ¶ added in v0.0.2
WithRateLimit is the option that adds rate limit to the client.
Example:
WithRateLimit(1000)
func WithSetHeaders ¶ added in v0.0.6
Click to show internal directories.
Click to hide internal directories.