Set headers on write

Allow the ability to set headers on files as you write them.