MCPcopy Create free account
hub / github.com/dfinity/orbit / not_found

Function not_found

libs/orbit-essentials/src/http.rs:65–71  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

63}
64
65pub fn not_found() -> HttpResponse {
66 HttpResponse {
67 status_code: 404,
68 headers: vec![HeaderField("Content-Type".into(), "text/plain".into())],
69 body: "404 Not Found".as_bytes().to_owned(),
70 }
71}
72
73pub fn parse_path(url: &str) -> Option<&str> {
74 url.split('?').next()

Callers 2

routerMethod · 0.85
routerMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected