Copyright (C) 2000-2012 |
GNU Info (emacs-mime)rfc2231rfc2231 ======= RFC2231 defines a syntax for the `Content-Type' and `Content-Disposition' headers. Its snappy name is "MIME Parameter Value and Encoded Word Extensions: Character Sets, Languages, and Continuations". In short, these headers look something like this: Content-Type: application/x-stuff; title*0*=us-ascii'en'This%20is%20even%20more%20; title*1*=%2A%2A%2Afun%2A%2A%2A%20; title*2="isn't it!" They usually aren't this bad, though. The following functions are defined by this library: - Function: rfc2231-parse-string string Parse a `Content-Type' header STRING and return a list describing its elements. (rfc2231-parse-string "application/x-stuff; title*0*=us-ascii'en'This%20is%20even%20more%20; title*1*=%2A%2A%2Afun%2A%2A%2A%20; title*2=\"isn't it!\"") => ("application/x-stuff" (title . "This is even more ***fun*** isn't it!")) - Function: rfc2231-get-value ct attribute Takes a list CT of the format above and returns the value of the specified ATTRIBUTE. - Function: rfc2231-encode-string parameter value Encode the string `PARAMETER=VALUE' for inclusion in headers likes `Content-Type' and `Content-Disposition'. automatically generated by info2www version 1.2.2.9 |