diff --git a/session.go b/session.go index 8bb3d2c..f0c8a37 100644 --- a/session.go +++ b/session.go @@ -173,6 +173,16 @@ func (ses *Session) SetConfig(typeConfig TypeConfig, values interface{}) { return } +// SetQuery 设置url query的持久参数的值 +func (ses *Session) SetQuery(values url.Values) { + ses.Query = values +} + +// GetQuery 获取get query的值 +func (ses *Session) GetQuery(values url.Values) url.Values { + return ses.Query +} + // SetCookies 设置Cookies 或者添加Cookies Del func (ses *Session) SetCookies(u *url.URL, cookies []*http.Cookie) { ses.cookiejar.SetCookies(u, cookies)