Looks like the Response::get_cookies method can do it easier. Warning you in case you didn't know the get_cookies method. Be aware of the full API is hard, we know.