Open olegshtch opened 2 years ago
Yeah, this would be easy to provide. Note you can do:
jar = HTTP.CookieJar()
dict = jar.entries
But I'd also take a PR to add a constructor like:
CookieJar(entries::Dict{String, Dict{String, Cookie}}) = CookieJar(ReentrantLock(), entries)
Before update I could save cookies to CSV file as is and restore them from the file by creating Dict and populate it with created cookies. Now I had to generate Headers with Set-Cookie headers for it.
Could it be solved by adding constructor to CookieJar which accepts initial cookies?