Просмотр исходного кода

Remove the HTTP_VALUE encode set. It can be defined in another crate.

See the define_encode_set! macro.
Simon Sapin 10 лет назад
Родитель
Сommit
4ec32fad79
2 измененных файлов с 1 добавлено и 10 удалено
  1. 1 1
      Cargo.toml
  2. 0 9
      src/percent_encoding.rs

+ 1 - 1
Cargo.toml

@@ -1,7 +1,7 @@
 [package]
 [package]
 
 
 name = "url"
 name = "url"
-version = "0.5.9"
+version = "1.0.0-dev"
 authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
 authors = [ "Simon Sapin <simon.sapin@exyr.org>" ]
 
 
 description = "URL library for Rust, based on the WHATWG URL Standard"
 description = "URL library for Rust, based on the WHATWG URL Standard"

+ 0 - 9
src/percent_encoding.rs

@@ -117,15 +117,6 @@ define_encode_set! {
     }
     }
 }
 }
 
 
-define_encode_set! {
-    /// This encode set is used for HTTP header values and is defined at
-    /// https://tools.ietf.org/html/rfc5987#section-3.2
-    pub HTTP_VALUE = [SIMPLE_ENCODE_SET] | {
-        ' ', '"', '%', '\'', '(', ')', '*', ',', '/', ':', ';', '<', '-', '>', '?',
-        '[', '\\', ']', '{', '}'
-    }
-}
-
 /// Percent-encode the given bytes, and push the result to `output`.
 /// Percent-encode the given bytes, and push the result to `output`.
 ///
 ///
 /// The pushed strings are within the ASCII range.
 /// The pushed strings are within the ASCII range.