get_headers


Description:

public unowned MessageHeaders? get_headers ()

Obtains the headers for the part currently being processed.

Note that the [struct@MessageHeaders] that are returned are owned by the MultipartInputStream and will be replaced when a call is made to [[email protected]_part] or its async counterpart, so if keeping the headers is required, a copy must be made.

Note that if a part had no headers at all an empty [struct@MessageHeaders] will be returned.

Parameters:

this

a MultipartInputStream.

Returns:

a MessageHeaders containing the headers for the part currently being processed or null if the headers failed to parse.




2022 vala-language.org