Cookie.domainMatches

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.

class Cookie
bool
domainMatches
(
string host
)

Parameters

host string

a URI

Return Value

Type: bool

true if the domains match, false otherwise