gmime.content_disposition

Module for [ContentDisposition] class

Types 3

A data structure representing a Content-Disposition.

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

Fluent builder for [gmime.content_disposition.ContentDisposition]