@classmethod
def from_request(cls, header_data, ignore_bad_cookies=False):
    """Construct a Cookies object from request header data."""
    cookies = cls()
    cookies.parse_request(header_data, ignore_bad_cookies=ignore_bad_cookies)
    return cookies
