Skip to main content

content_disposition

Function content_disposition 

Source
pub fn content_disposition(
    disposition: Disposition,
    filename: Option<&str>,
) -> String
Expand description

RFC 6266: an ASCII filename for old clients and the UTF-8 filename* (RFC 5987) beside it. Quotes, backslashes and characters that mislead a reader are dropped from both.