Adds support for HTTP headers.

Also fixes some errors in my last commit.