MCPcopy Create free account
hub / github.com/clockworklabs/SpacetimeDB / patch

Method patch

crates/bindings/src/http.rs:320–322  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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 ///

Callers 5

index.tsFile · 0.45
index.tsFile · 0.45
index.tsFile · 0.45
transfer.tsFile · 0.45

Calls 2

MethodFunction · 0.50
add_routeMethod · 0.45

Tested by

no test coverage detected