On 2016-11-28 12:40 AM, Raghavendra Nayak Muddur wrote:
Hi,
We are working on updating cookie storage to use hashmap where the key is a
base domain of the cookie. We found getting the base domain from
URL manually writing new function little challenging since base domain name
has the different format like google.com, google.co.uk, localhost etc. So I
wanted to check if there is any function/utility which would help us do
this?
Thanks,
Raghav
You'll want
https://github.com/servo/servo/blob/master/components/constellation/constellation.rs#L493
which you can move to components/net_traits/pub_domains.rs to the cookie
code can use it.
Cheers,
Josh
_______________________________________________
dev-servo mailing list
dev-servo@lists.mozilla.org
https://lists.mozilla.org/listinfo/dev-servo