You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As I assume, cookies lives only during request handling (from parsing http headers until finishing sending http body). Why CookieJar uses 'static attribute on definitely non-static data?
The other questions: Does it leak memory by making non-static data static? How it is making cookie data static?
If I understood correctly, the all data getters of Cookie<'static> returns references with lifetime bound to reference to &Cookie itself but not to lifetime generic parameter of the struct definition.
I just don't understand why.
As I assume, cookies lives only during request handling (from parsing http headers until finishing sending http body). Why CookieJar uses
'static
attribute on definitely non-static data?The other questions: Does it leak memory by making non-static data static? How it is making cookie data static?
The method that I am talking about is here.
The text was updated successfully, but these errors were encountered: