leptos_router/
method.rs

1/// Represents an HTTP method that can be handled by this route.
2#[derive(Copy, Clone, Debug, Default, PartialEq, Eq, Hash)]
3pub enum Method {
4    /// The [`GET`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/GET) method
5    /// requests a representation of the specified resource.
6    #[default]
7    Get,
8    /// The [`POST`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST) method
9    /// submits an entity to the specified resource, often causing a change in
10    /// state or side effects on the server.
11    Post,
12    /// The [`PUT`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PUT) method
13    /// replaces all current representations of the target resource with the request payload.
14    Put,
15    /// The [`DELETE`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/DELETE) method
16    /// deletes the specified resource.
17    Delete,
18    /// The [`PATCH`](https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/PATCH) method
19    /// applies partial modifications to a resource.
20    Patch,
21}