Rocket/testbench/src
Sergio Benitez 72c91958b7 Support routes that match any method.
This commit introduces support for method-less routes and route
attributes, which match _any_ valid method: `#[route("/")]`. The `Route`
structure's `method` field is now accordingly of type `Option<Route>`.

The syntax for the `route` attribute has changed in a breaking manner.
To set a method, a key/value of `method = NAME` must be introduced:

```rust
#[route("/", method = GET)]
```

If the method's name is a valid identifier, it can be used without
quotes. Otherwise it must be quoted:

```rust
// `GET` is a valid identifier, but `VERSION-CONTROL` is not
#[route("/", method = "VERSION-CONTROL")]
```

Closes #2731.
2024-08-24 03:00:52 -07:00
..
servers Support routes that match any method. 2024-08-24 03:00:52 -07:00
client.rs Fix support for HTTP extension methods. 2024-08-17 04:25:49 -07:00
config.rs Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
lib.rs Introduce dynamic TLS resolvers. 2024-04-16 23:50:28 -07:00
main.rs Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
runner.rs Finalize 'tracing' migration. 2024-06-03 15:02:44 -07:00
server.rs Allow dynamic selection of log format. 2024-06-03 14:39:20 -07:00