优化代码

This commit is contained in:
bxd
2023-09-13 11:53:44 +08:00
parent 6e8ec47a89
commit d28a6d30b6
3 changed files with 28 additions and 51 deletions

View File

@@ -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