gmime.content_disposition

Module for [ContentDisposition] class

Types 3

A data structure representing a Content-Disposition.

Methods
GType _getGType() static nothrow
GType _gType() @property nothrow
ContentDisposition self() nothrowReturns `this`, for use in `with` statements.
ContentDispositionGidBuilder builder() static nothrowGet builder for [gmime.content_disposition.ContentDisposition] Returns: New builder object
gmime.content_disposition.ContentDisposition parse(gmime.parser_options.ParserOptions options, string str) static nothrowParses the input string into a #GMimeContentDisposition object.
string encode(gmime.format_options.FormatOptions options = null) nothrowEncodes the Content-Disposition header.
string getDisposition() nothrowGets the disposition or null on fail. Returns: the disposition string which is probably one of #GMIME_DISPOSITION_ATTACHMENT or #GMIME_DISPOSITION_INLINE.
string getParameter(string name) nothrowGets the parameter value specified by name if it's available.
gmime.param_list.ParamList getParameters() nothrowGets the Content-Disposition parameter list. Returns: the Content-Disposition's parameter list.
bool isAttachment() nothrowDetermines if a Content-Disposition has a value of "attachment". Returns: true if the value matches "attachment", otherwise false.
void setDisposition(string value) nothrowSets the disposition to value which may be one of #GMIME_DISPOSITION_ATTACHMENT or #GMIME_DISPOSITION_INLINE or, by your choice, any other string which would indicate how the MIME part should be di...
void setParameter(string name, string value) nothrowSets a parameter on the Content-Disposition.
Constructors
this(void * ptr, Flag!"Take" take)
this()Creates a new #GMimeContentDisposition object. Returns: a new #GMimeContentDisposition object.