There is no concept of force here but there is the option to save session cookies. To keep some kind of backward compatibility (and because estately want them) we will save session cookies. This can easily be put behind an option but there is no point adding one until some-one says they want it.
Previously we called either
HTTPClient.save_cookie_store
orWebagent::CookieManager.save_all_cookies
HTTPClient:
https://github.com/nahi/httpclient/blob/b986cec52df1f2d6610a469f13f3778e81ba9dfa/lib/httpclient.rb#L580
Webagent::CookieManager
def save_all_cookies(force = nil, save_unused = true, save_discarded = true)
https://github.com/nahi/httpclient/blob/master/lib/httpclient/webagent-cookie.rbUnfortunately
save_all_cookies
does not exist on HTTPClient::CookieManager (which we use because we include thehttp-cookie
gem)HTTPClient::CookieManager
def save_cookies(session = false)
https://github.com/nahi/httpclient/blob/master/lib/httpclient/cookie.rb#L25There is no concept of
force
here but there is the option to save session cookies. To keep some kind of backward compatibility (and because estately want them) we will save session cookies. This can easily be put behind an option but there is no point adding one until some-one says they want it.