Adding lastResponseHeaders to be able to access the set-cookie header.