ソースを参照

adds docs for form_urlencoded::parse

Conrad Kleinespel 11 年 前
コミット
1524703c84
1 ファイル変更3 行追加0 行削除
  1. 3 0
      src/form_urlencoded.rs

+ 3 - 0
src/form_urlencoded.rs

@@ -23,6 +23,9 @@ use percent_encoding::{percent_encode_to, percent_decode, FORM_URLENCODED_ENCODE
 /// into a vector of (name, value) pairs.
 ///
 /// Use `parse(input.as_bytes())` to parse a `&str` string.
+///
+/// The names and values are URL-decoded. For instance, `%23first=%25try%25` will be
+/// converted to `[("#first", "%try%")]`.
 #[inline]
 pub fn parse(input: &[u8]) -> Vec<(String, String)> {
     parse_internal(input, EncodingOverride::utf8(), false).unwrap()