gmime.header_list
Module for [HeaderList] class
Types 3
A list of message or mime-part headers.
Methods
HeaderList self()Returns `this`, for use in `with` statements.HeaderListGidBuilder builder()Get builder for [gmime.header_list.HeaderList] Returns: New builder objectvoid append(string name, string value, string charset = null)Appends a header. If value is null, a space will be set aside for it (useful for setting the order of headers before values can be obtained for them) otherwise the header will be unset.void clear()Removes all of the headers from the #GMimeHeaderList.bool contains(string name)Checks whether or not a header exists.int getCount()Gets the number of headers contained within the header list. Returns: the number of headers in the header list.gmime.header.Header getHeader(string name)Gets the first header with the specified name.gmime.header.Header getHeaderAt(int index)Gets the header at the specified index within the list.void prepend(string name, string value, string charset = null)Prepends a header. If value is null, a space will be set aside for it (useful for setting the order of headers before values can be obtained for them) otherwise the header will be unset.bool remove(string name)Remove the first instance of the specified header.void removeAt(int index)Removes the header at the specified index from headers.void set(string name, string value, string charset = null)Set the value of the specified header. If value is null and the header, name, had not been previously set, a space will be set aside for it (useful for setting the order of headers before values ca...string toString_(gmime.format_options.FormatOptions options = null)Allocates a string buffer containing the raw rfc822 headers contained in headers.ptrdiff_t writeToStream(gmime.format_options.FormatOptions options, gmime.stream.Stream stream)Write the headers to a stream.Constructors
this(gmime.parser_options.ParserOptions options = null)Creates a new #GMimeHeaderList object.Fluent builder for [gmime.header_list.HeaderList]
Methods