Top | ![]() |
![]() |
![]() |
![]() |
|
camel_medium_add_header () |
|
camel_medium_set_header () |
|
camel_medium_remove_header () |
const |
camel_medium_get_header () |
CamelNameValueArray * | camel_medium_dup_headers () |
const CamelNameValueArray * | camel_medium_get_headers () |
|
camel_medium_get_content () |
|
camel_medium_set_content () |
void camel_medium_add_header (,
CamelMedium *mediumconst
,gchar *nameconst
);gchar *value
Adds a header to a
void camel_medium_set_header (,
CamelMedium *mediumconst
,gchar *nameconst
);gchar *value
Sets the value of a header. Any other occurances of the header
will be removed. Setting a NULL
void camel_medium_remove_header (,
CamelMedium *mediumconst
);gchar *name
Removes the named header from the medium. All occurances of the header are removed.
constgchar * camel_medium_get_header (,
CamelMedium *mediumconst
);gchar *name
Gets the value of the named header in the medium, or NULL
If the header occurs more than once, only retrieve the first
instance of the header. For multi-occuring headers, use
camel_medium_dup_headers()
or camel_medium_get_headers()
.
CamelNameValueArray *
camel_medium_dup_headers (CamelMedium *medium
);
Gets an array of all header name/value pairs. The values will be
decoded to UTF-8 for any headers that are recognized by Camel.
See also camel_medium_get_headers()
.
the array of headers, which must be freed with camel_name_value_array_free()
.
[transfer full]
Since: 3.24
const CamelNameValueArray *
camel_medium_get_headers (CamelMedium *medium
);
Gets an array of all header name/value pairs. The values will be
decoded to UTF-8 for any headers that are recognized by Camel.
See also camel_medium_dup_headers()
.
Since: 3.24
CamelDataWrapper * camel_medium_get_content ();
CamelMedium *medium
Gets a data wrapper that represents the content of the medium, without its headers.