mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
优化代码
This commit is contained in:
@@ -182,7 +182,9 @@ func NewClient(preCtx context.Context, options ...ClientOption) (*Client, error)
|
||||
result.h2Ja3Spec = option.H2Ja3Spec
|
||||
return result, err
|
||||
}
|
||||
|
||||
func (obj *Client) HttpClient() *http.Client {
|
||||
return obj.client
|
||||
}
|
||||
func (obj *Client) SetProxy(proxyUrl string) (err error) {
|
||||
obj.proxy, err = tools.VerifyProxy(proxyUrl)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user