Rocket/lib/src/http
Sergio Benitez 9160483554 A route with unspecified query parameters accepts any.
This is a breaking change. It modifies collisions with respect to query
parameters as well as the default ranking of routes.

A route that does not specify query parameters will now match against
requests with _and without_ query parameters, assuming all other
elements of the route match as well. A route that _does_ specify query
parameters will only match requests with query parameters; this remains
true.

To accommodate this change in the most natural manner possible, the
default rankings of routes have changed as illustrated below:

  |-------------+-------+----------+---------------|
  | static path | query | new rank | previous rank |
  |-------------+-------+----------+---------------|
  | yes         | yes   | -4       | 0             |
  | yes         | no    | -3       | 0             |
  | no          | yes   | -2       | 1             |
  | no          | no    | -1       | 1             |
  |-------------+-------+----------+---------------|

In other words, the most specific routes, with preference for paths over
queries, are ranked highest (lower number).
2017-03-27 03:52:26 -07:00
..
parse A route with unspecified query parameters accepts any. 2017-03-27 03:52:26 -07:00
accept.rs Add the Accept ContentType structure. 2017-03-27 01:53:45 -07:00
ascii.rs Move parsing tests to parse module. 2017-03-21 20:30:56 -07:00
content_type.rs Reformulate ContentType as a wrapper around MediaType. 2017-03-23 22:41:42 -07:00
cookies.rs Initial session support. 2017-03-08 03:28:12 -08:00
header.rs Update to cookie 0.7. Use 256-bit session_keys. 2017-03-07 01:19:06 -08:00
hyper.rs Return a `LaunchError` from `launch` when launching fails. 2017-03-15 22:10:09 -07:00
known_media_types.rs Reformulate ContentType as a wrapper around MediaType. 2017-03-23 22:41:42 -07:00
media_type.rs Reformulate ContentType as a wrapper around MediaType. 2017-03-23 22:41:42 -07:00
method.rs Use pub(crate) to enforce doc(hidden). 2017-02-03 02:17:06 -08:00
mod.rs Add the Accept ContentType structure. 2017-03-27 01:53:45 -07:00
session.rs Rename Session::add to Session::set. 2017-03-08 14:25:58 -08:00
status.rs Use pub(crate) to enforce doc(hidden). 2017-02-03 02:17:06 -08:00
uri.rs Add percent_encode method to URI. 2017-02-06 03:41:12 -08:00