Added process_response().
This sets the most relevant headers, but there are still some to add.