Skip to main content

parse_content_disposition_filename

Function parse_content_disposition_filename 

Source
pub fn parse_content_disposition_filename(header_value: &str) -> Option<String>
Expand description

Parse the filename or filename* from a Content-Disposition header value.

Prefers the RFC 5987 filename* form (percent-encoded, with charset) over the plain filename form. Returns None if neither is present or valid.