Commit Graph

  • 529fed3dca Add {RelativeSchemeData,Url}::to_file_path() methods. Simon Sapin 2014-07-19 15:35:31 +01:00
  • db0c401f20 Add {RelativeSchemeData,Url}::domain() methods. Simon Sapin 2014-07-19 15:35:14 +01:00
  • 27cea822f8 Make percent_decode() push to an existing vector. Simon Sapin 2014-07-19 15:21:04 +01:00
  • fda647f1b8 Add Url::serialize_host() Simon Sapin 2014-07-19 11:07:44 +01:00
  • 82873eeee5 README wrangling. Simon Sapin 2014-07-19 11:07:35 +01:00
  • e5b4fc896e Rename UrlParser::schemes to scheme_type_mapper. Simon Sapin 2014-07-18 23:58:39 +01:00
  • 54f6d73fb8 Rename encoding_override to query_encoding_override. Simon Sapin 2014-07-18 23:57:37 +01:00
  • b10fa90374 Have form_urlencoded::serialize take an iterator. Simon Sapin 2014-07-18 23:54:19 +01:00
  • 85ccb5b7f4 Add API to override which schemes are relative and default ports. Simon Sapin 2014-07-18 23:44:52 +01:00
  • 175f250cf4 Require an UrlParser for UrlUtils. Remove encoding_override from Url. Simon Sapin 2014-07-18 23:34:52 +01:00
  • 0320fb55c6 Add UrlParser to set optional parameter through method chaining. Simon Sapin 2014-07-18 22:50:41 +01:00
  • 4afc37e466 Add convenience method to acces various pieces of an URL. Simon Sapin 2014-07-18 18:17:17 +01:00
  • 3587de380d Rename SchemeRelativeUrl to RelativeSchemeData. Simon Sapin 2014-07-18 18:02:01 +01:00
  • 589e7d6221 Upgrade to rustc 459ffc2adc74f5e8b64a76f5670edb419b9f65da 2014-07-17 Simon Sapin 2014-07-17 14:35:42 +01:00
  • 0d2267bcfb Make percent-{en,de}coding public. Simon Sapin 2014-07-15 23:39:00 +01:00
  • d3d0cb7579 Build both dynamic and static libraries Simon Sapin 2014-07-15 22:30:17 +01:00
  • 03478b8cb1 Implement Hash for Url. Simon Sapin 2014-07-15 22:00:13 +01:00
  • 744f496c27 Implement Eq and PartialEq on Url structs. Simon Sapin 2014-07-15 21:36:01 +01:00
  • f9cbdef3af Make (most) struct fields public. Simon Sapin 2014-07-15 21:18:53 +01:00
  • 25c45dda3e Add encoding override support in the parser. Simon Sapin 2014-07-15 20:09:58 +01:00
  • 6652cd3086 Move URLUtil setters to a separate trait Simon Sapin 2014-07-15 20:02:20 +01:00
  • e7de04ed43 Remove done items from the README’s To Do list. Simon Sapin 2014-07-15 19:46:56 +01:00
  • d0c9792940 Add some missing non-fatal parse errors. Simon Sapin 2014-07-15 19:46:24 +01:00
  • b48193b15e Refactor parse_relative_url() so that OtherSchemeData can not be given. Simon Sapin 2014-07-15 14:53:42 +01:00
  • 09788a561c Avoid boolean arguments. Simon Sapin 2014-07-14 17:51:47 +01:00
  • 35e1852e59 Add a comment on userinfo encode set (which does not exist in the spec.) Simon Sapin 2014-07-14 15:57:41 +01:00
  • de6bd47a1f Add some early returns to reduce indentation. Simon Sapin 2014-07-13 23:41:40 +01:00
  • da7f23905b Refactor some repeating/redundant code. Simon Sapin 2014-07-13 22:58:44 +01:00
  • 83f494b0f3 Replace the c.len_utf8_bytes() hack by a custom string iterator. Simon Sapin 2014-07-13 22:33:16 +01:00
  • 9f257e9f64 Update tests from github.com/w3c/web-platform-tests Simon Sapin 2014-07-13 22:07:58 +01:00
  • 5c6e271db3 Add support for expected failures in tests. Simon Sapin 2014-07-13 22:07:35 +01:00
  • 86fd85478a Use lookup tables for percent-encoding. Simon Sapin 2014-07-13 21:45:44 +01:00
  • f3548e98cf Upgrade to rustc 5ad7286dc37839b7234ff51aab172e48935869d8 2014-07-12 Simon Sapin 2014-07-13 21:44:27 +01:00
  • 72b7b97343 Temporarily rename the crate to url_, avoid conflict with rust’s url crate. Simon Sapin 2014-07-07 14:42:12 +01:00
  • ed958694d2 Update API in README. Simon Sapin 2014-07-07 09:35:28 +01:00
  • 7b973db506 U+FFF0 to U+FFFD are now URL code points per spec. Simon Sapin 2014-07-06 21:06:09 +01:00
  • f51915ae55 Disallow leading zeros in IPv4-in-IPv6 address, per spec. Simon Sapin 2014-07-06 21:00:39 +01:00
  • 61154630fb Add URLUtils setters. Simon Sapin 2014-07-06 20:33:12 +01:00
  • 5c3d3b2beb Get rid of UserInfo. The username default to the empty string. Simon Sapin 2014-07-06 18:56:32 +01:00
  • a3f858426c The spec now considers to be a string rather than a list of (string) labels. Simon Sapin 2014-07-06 18:12:41 +01:00
  • f2f4427151 Non-fatal parse errors shall be handled by callback. Simon Sapin 2014-07-06 13:22:30 +01:00
  • 74e40543e7 Use try!() to simplify some code. Simon Sapin 2014-07-06 13:21:16 +01:00
  • 579895c93a Parse with char iterators instead of UTF-8 bytes. Simon Sapin 2014-07-05 23:14:57 +01:00
  • c63b03a779 Switch to Cargo. Simon Sapin 2014-07-05 19:48:01 +01:00
  • 1e3e6535f4 Upgrade to rustc 459f155f81291c46633e86a480628b50304ffb1c 2014-07-04 Simon Sapin 2014-07-05 19:44:50 +01:00
  • c36aac6abd Upgrade to Rust 25951b2 2014-05-30 Simon Sapin 2014-05-30 17:01:24 -07:00
  • c6eed978a3 Upgrade to Rust aa67254 2014-05-08 Simon Sapin 2014-05-16 16:15:17 +02:00
  • 350bd6b910 Merge pull request #1 from dmski/master Simon Sapin 2014-04-10 00:42:15 +01:00
  • 491c1667e3 Made rust-url compile with rust master Dmitry Promsky 2014-04-10 02:06:34 +04:00
  • 7592e78c82 Rename URL to Url and IPv6 to Ipv6, per Rust naming convention. Simon Sapin 2014-02-04 10:33:27 +00:00
  • affce4116d More doc tweaks. Simon Sapin 2014-02-04 01:58:41 +00:00
  • 15d0ffdb66 Tweak and document the API Simon Sapin 2014-02-04 01:53:21 +00:00
  • 5d584273ba Fix parsing of application/x-www-form-urlencoded from bytes. Simon Sapin 2014-02-04 01:42:57 +00:00
  • 3662f92224 Move application/x-www-form-urlencoded stuff into a module. Simon Sapin 2014-02-04 00:51:31 +00:00
  • 2bb8cf786b Turns out [Ascii] isn’t that useful. Switch to str. Simon Sapin 2014-02-04 00:45:10 +00:00
  • 4091e1437a Add a TODO list Simon Sapin 2014-02-03 23:52:08 +00:00
  • af590112c2 Fix tests. Simon Sapin 2014-02-03 22:44:08 +00:00
  • 8ecc7ad1e1 Add an URL parser, functional style rather than the spec’s state machine Simon Sapin 2014-02-03 22:42:51 +00:00
  • c62ce0bd16 Upgrade tests to current rustc. Simon Sapin 2014-02-02 12:51:30 +01:00
  • d7e8d0b571 Update to rustc 0.9 (ab9ec6d 2014-01-09 05:06:33 -0800) Simon Sapin 2014-01-09 15:07:43 +00:00
  • 1db0239ec2 Use EncodingRef rather than &'static Encoding Simon Sapin 2014-01-09 14:31:30 +00:00
  • 0ce6320087 Move tests to another file. Simon Sapin 2013-12-10 21:32:56 +00:00
  • 89baf99ef7 Remove obsolete comment. Simon Sapin 2013-12-10 18:42:47 +00:00
  • d56b2fbb12 ASCII turtles all the way down. Simon Sapin 2013-12-06 13:22:22 +00:00
  • 2ad80c5c3a Add some comments and better variable names. Simon Sapin 2013-12-05 20:37:03 +00:00
  • 7781e38d9b Add and test punycode encoding. Simon Sapin 2013-12-05 18:45:31 +00:00
  • 9835ae3bc3 Test and fix punycode decoding. Simon Sapin 2013-12-05 17:15:22 +00:00
  • 32b363a921 Add punycode decoding. Simon Sapin 2013-12-05 14:20:51 +00:00
  • a345a1edf1 Document rust-encoding dependency. Simon Sapin 2013-12-04 20:36:16 +00:00
  • ce2b4a0ebd Link to mozilla/rust#10707 in the README Simon Sapin 2013-12-04 20:20:35 +00:00
  • 5635ac9073 Add URL serialization. Simon Sapin 2013-12-04 20:09:01 +00:00
  • dfbfa62b5d Properly deal with non-ASCII domains (without IDNA) Simon Sapin 2013-12-04 19:44:00 +00:00
  • d32c21d5cc Add application/x-www-form-urlencoded parser Simon Sapin 2013-12-04 18:08:12 +00:00
  • 467173bc95 Add application/x-www-form-urlencoded serializer Simon Sapin 2013-12-04 17:18:44 +00:00
  • 0883357026 Add host (and IPv6) serialization. (But without IDNA) Simon Sapin 2013-12-02 21:24:20 +00:00
  • f98f27fef1 Add host (and IPv6) serialization Simon Sapin 2013-12-02 17:49:16 +00:00
  • 4269f922d4 Simplify the ParsedURL data structures. Simon Sapin 2013-12-02 16:57:39 +00:00
  • 7732f02121 Add data structures and test harness. Simon Sapin 2013-10-22 13:55:33 +02:00
  • 1009c31bc7 Import and parse test data. Simon Sapin 2013-10-18 17:17:32 +01:00
  • 0339bc2d9a Start with an empty crate. Simon Sapin 2013-10-18 15:19:54 +01:00