Use resp.to_hash for headers.