'Construct a Cookies object from response header data.'

@classmethod
def from_response(cls, header_data, ignore_bad_cookies=False, ignore_bad_attributes=True):

    cookies = Cookies()
    cookies.parse_response(header_data, ignore_bad_cookies=ignore_bad_cookies, ignore_bad_attributes=ignore_bad_attributes)
    return cookies
