Add headers() and cookies() method.