Rocket/docs/guide
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
..
00-introduction.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
01-upgrading.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
02-quickstart.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
03-getting-started.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
04-overview.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
05-requests.md Support routes that match any method. 2024-08-24 03:00:52 -07:00
06-responses.md Add MiniJinja for templating example (#2799) 2024-06-26 01:27:44 -05:00
07-state.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
08-fairings.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00
09-testing.md Rename 'Rocket::configure()' to 'reconfigure()'. 2024-04-25 14:47:43 -07:00
10-configuration.md Fix wrong URL in guide (configuration) 2024-08-07 21:36:52 -05:00
11-deploying.md Improve FileServer rewrite API. 2024-07-06 15:34:21 +02:00
12-pastebin.md Add deploying guide. 2024-04-25 20:03:44 -07:00
13-conclusion.md Add deploying guide. 2024-04-25 20:03:44 -07:00
14-faq.md Add deploying guide. 2024-04-25 20:03:44 -07:00
index.md Reorganize and upgrade markup in site docs. 2024-02-28 23:41:02 -08:00