Registers `handler` to handle `PATCH` requests at `path`. Panics if `self` already has a handler on this method at this path, including one registered with [`Self::any`], or if this path overlaps with a nested router registered by [`Self::nest`]. Panics if the `path` is [invalid](Self#paths).
(self, path: impl Into<String>, handler: Handler)
| 318 | /// |
| 319 | /// Panics if the `path` is [invalid](Self#paths). |
| 320 | pub fn patch(self, path: impl Into<String>, handler: Handler) -> Self { |
| 321 | self.add_route(MethodOrAny::Method(st_http::Method::Patch), path, handler) |
| 322 | } |
| 323 | |
| 324 | /// Registers `handler` to handle requests of any HTTP method at `path`. |
| 325 | /// |
no test coverage detected