gmime.content_disposition
Module for ContentDisposition class
Types 3
A data structure representing a Content-Disposition.
Methods
ContentDisposition self()Returns `this`, for use in `with` statements.ContentDispositionGidBuilder builder()Get builder for [gmime.content_disposition.ContentDisposition] Returns: New builder objectgmime.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 #GMIME_DISPOSITION_ATTACHMENT or #GMIME_DISPOSITION_INLINE.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 #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)Sets a parameter on the Content-Disposition.Fluent builder implementation template for gmime.content_disposition.ContentDisposition
Fluent builder for gmime.content_disposition.ContentDisposition
Methods
ContentDisposition build()Create object from builder. Returns: New object