summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/lib.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
index 9ba8535..fc5ec35 100644
--- a/src/lib.rs
+++ b/src/lib.rs
@@ -719,6 +719,11 @@ impl<'a> ParsedMail<'a> {
Ok(decoded)
}
+ /// Returns a struct containing a parsed representation of the
+ /// Content-Disposition header. The first header with this name
+ /// is used, if there are multiple. See the `parse_content_disposition`
+ /// method documentation for more details on the semantics of the
+ /// returned object.
pub fn get_content_disposition(&self) -> Result<ParsedContentDisposition, MailParseError> {
let disposition = self.headers
.get_first_value("Content-Disposition")?