From 03a4b80888a677a78bd0b3e0be19303a71e261f0 Mon Sep 17 00:00:00 2001 From: Kartikaya Gupta Date: Wed, 23 May 2018 22:05:45 -0400 Subject: Regenerate documentation --- target/doc/mailparse/fn.parse_content_type.html | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) (limited to 'target/doc/mailparse/fn.parse_content_type.html') diff --git a/target/doc/mailparse/fn.parse_content_type.html b/target/doc/mailparse/fn.parse_content_type.html index f76083b..b60539e 100644 --- a/target/doc/mailparse/fn.parse_content_type.html +++ b/target/doc/mailparse/fn.parse_content_type.html @@ -10,10 +10,11 @@ mailparse::parse_content_type - Rust - + - + @@ -33,7 +34,7 @@
@@ -54,13 +55,11 @@ -
-

Function mailparse::parse_content_type +

Function mailparse::parse_content_type [] - [src]

-
pub fn parse_content_type(header: &str) -> ParsedContentType

Helper method to parse a header value as a Content-Type header. Note that + [src]

pub fn parse_content_type(header: &str) -> ParsedContentType

Helper method to parse a header value as a Content-Type header. Note that the returned object's params map will contain a charset key if a charset was explicitly specified in the header; otherwise the params map will not contain a charset key. Regardless, the charset field will contain a @@ -68,7 +67,7 @@ charset - either the one explicitly specified or the default of "us-ascii&q

Examples

     use mailparse::{parse_header, parse_content_type};
-    let (parsed, _) = parse_header(
+    let (parsed, _) = parse_header(
             b"Content-Type: text/html; charset=foo; boundary=\"quotes_are_removed\"")
         .unwrap();
     let ctype = parse_content_type(&parsed.get_value().unwrap());
@@ -79,7 +78,7 @@ charset - either the one explicitly specified or the default of "us-ascii&q
 
 
     use mailparse::{parse_header, parse_content_type};
-    let (parsed, _) = parse_header(b"Content-Type: bogus").unwrap();
+    let (parsed, _) = parse_header(b"Content-Type: bogus").unwrap();
     let ctype = parse_content_type(&parsed.get_value().unwrap());
     assert_eq!(ctype.mimetype, "bogus");
     assert_eq!(ctype.charset, "us-ascii");
@@ -88,7 +87,7 @@ charset - either the one explicitly specified or the default of "us-ascii&q
 
 
     use mailparse::{parse_header, parse_content_type};
-    let (parsed, _) = parse_header(br#"Content-Type: application/octet-stream;name="=?utf8?B?6L+O5ai255m95a+M576O?=";charset="utf8""#).unwrap();
+    let (parsed, _) = parse_header(br#"Content-Type: application/octet-stream;name="=?utf8?B?6L+O5ai255m95a+M576O?=";charset="utf8""#).unwrap();
     let ctype = parse_content_type(&parsed.get_value().unwrap());
     assert_eq!(ctype.mimetype, "application/octet-stream");
     assert_eq!(ctype.charset, "utf8");
-- 
cgit v1.2.3