Write the headers to a stream.
a #GMimeFormatOptions or null
output stream
the number of bytes written or %-1 on fail.
Write the headers to a stream.