MCPcopy Create free account
hub / github.com/ceramicnetwork/rust-ceramic / method_not_allowed

Function method_not_allowed

api-server/src/server/mod.rs:145–150  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

143}
144
145fn method_not_allowed() -> Result<Response<Body>, crate::ServiceError> {
146 Ok(Response::builder()
147 .status(StatusCode::METHOD_NOT_ALLOWED)
148 .body(Body::empty())
149 .expect("Unable to create Method Not Allowed response"))
150}
151
152pub struct Service<T, C>
153where

Callers 1

runMethod · 0.70

Calls 2

expectMethod · 0.80
statusMethod · 0.80

Tested by

no test coverage detected