Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MinTimeout 最小超时时间 MinTimeout = time.Second * 3 // DefaultTimeout 默认超时时间 DefaultTimeout = time.Second * 30 )
Variables ¶
Functions ¶
func NewClient ¶
func NewClient(options ...ClientOption) (client *req.Client)
Types ¶
type ClientOption ¶ added in v3.0.909
type ClientOption func(*clientOptions)
func WithInsecureSkipVerify ¶ added in v3.0.909
func WithInsecureSkipVerify(insecureSkipVerify bool) ClientOption
func WithLogger ¶ added in v3.0.909
func WithLogger(logger req.Logger) ClientOption
func WithTimeout ¶ added in v3.0.909
func WithTimeout(timeout time.Duration) ClientOption
Click to show internal directories.
Click to hide internal directories.