HeaderList
Object Hierarchy:
Description:
[ CCode ( type_id = "g_mime_header_list_get_type ()" ) ]
public class HeaderList : Object
A list of message or mime-part headers.
Content:
Creation methods:
Methods:
- public void @set (string name, string value, string charset)
Set the value of the specified header.
- public void append (string name, string value, string charset)
Appends a header.
- public void clear ()
Removes all of the headers from the HeaderList
.
- public bool contains (string name)
Checks whether or not a header exists.
- public int get_count ()
Gets the number of headers contained within the header list.
- public unowned Header get_header (string name)
Gets the first header with the specified name.
- public unowned Header get_header_at (int index)
Gets the header at the specified index
within the list.
- public void prepend (string name, string value, string charset)
Prepends a header.
- public bool remove (string name)
Remove the first instance of the specified header.
- public void remove_at (int index)
Removes the header at the specified index
from
this.
- public string to_string (FormatOptions? options)
Allocates a string buffer containing the raw rfc822 headers contained
in this.
- public ssize_t write_to_stream (FormatOptions? options, Stream stream)
Write the headers to a stream.
Inherited Members:
All known members inherited from class GLib.Object
- @get
- @new
- @ref
- @set
- add_toggle_ref
- add_weak_pointer
- bind_property
- connect
- constructed
- disconnect
- dispose
- dup_data
- dup_qdata
- force_floating
- freeze_notify
- get_class
- get_data
- get_property
- get_qdata
- get_type
- getv
- interface_find_property
- interface_install_property
- interface_list_properties
- is_floating
- new_valist
- new_with_properties
- newv
- notify
- notify_property
- ref_count
- ref_sink
- remove_toggle_ref
- remove_weak_pointer
- replace_data
- replace_qdata
- set_data
- set_data_full
- set_property
- set_qdata
- set_qdata_full
- set_valist
- setv
- steal_data
- steal_qdata
- thaw_notify
- unref
- watch_closure
- weak_ref
- weak_unref