mirror of
https://github.com/gospider007/requests.git
synced 2025-12-24 13:57:52 +08:00
optimize cookies
This commit is contained in:
@@ -200,10 +200,16 @@ func (obj *Client) SetGetProxy(getProxy func(ctx context.Context, url *url.URL)
|
||||
func (obj *Client) CloseIdleConnections() {
|
||||
obj.transport.CloseIdleConnections()
|
||||
}
|
||||
|
||||
func (obj *Client) CloseConnections() {
|
||||
obj.transport.CloseConnections()
|
||||
}
|
||||
func (obj *Client) CloseIdleConnectionsWithProxy(proxy string) {
|
||||
obj.transport.CloseIdleConnectionsWithProxy(proxy)
|
||||
}
|
||||
func (obj *Client) CloseConnectionsWithProxy(proxy string) {
|
||||
obj.transport.CloseConnectionsWithProxy(proxy)
|
||||
}
|
||||
|
||||
func (obj *Client) Close() {
|
||||
obj.CloseConnections()
|
||||
obj.cnl()
|
||||
|
||||
Reference in New Issue
Block a user