def write_to(self, f):
f.write(self.version + "<STR_LIT:\r\n>")<EOL>for name, value in self.items():<EOL><INDENT>name = name.title()<EOL>name = name.replace("<STR_LIT>", "<STR_LIT>").replace("<STR_LIT>", "<STR_LIT>").replace("<STR_LIT>", "<STR_LIT>").replace("<STR_LIT>", "<STR_LIT>")<EOL>f.write(name)<EOL>f.write("<STR_LIT>")<EOL>f.write(value)<EOL>f.write("<STR_LIT:\r\n>")<EOL><DEDENT>f.write("<STR_LIT:\r\n>")<EOL>
Writes this header to a file, in the format specified by WARC.