Cookie.domainMatches

bool domainMatches(string host)

Checks if the cookie's domain and host match.

The domains match if cookie should be sent when making a request to host, or that cookie should be accepted when receiving a response from host.

Parameters

hosta URI

Returns

true if the domains match, false otherwise