Add ability to set HTTP header fields

Allows the user to pass a dictionary of HTTP header fields that are included with the request.