This commit is contained in:
holooooo
2021-05-25 09:56:54 +08:00
parent 00b6c32dc2
commit 8a24192762
7 changed files with 13 additions and 16 deletions

View File

@@ -21,8 +21,10 @@ import (
"time"
)
type ClientOption func(client *Client)
type BeegoHTTPRequestOption func(request *BeegoHTTPRequest)
type (
ClientOption func(client *Client)
BeegoHTTPRequestOption func(request *BeegoHTTPRequest)
)
// WithEnableCookie will enable cookie in all subsequent request
func WithEnableCookie(enable bool) ClientOption {