MCPcopy Create free account
hub / github.com/NVIDIA/OpenShell / request_origin

Function request_origin

crates/openshell-server/src/http.rs:270–273  ·  view source on GitHub ↗
(req: &Request)

Source from the content-addressed store, hash-verified

268}
269
270fn request_origin(req: &Request) -> Option<Origin> {
271 let host = crate::service_routing::request_host(req)?;
272 parse_origin_authority("http", host)
273}
274
275fn parse_origin(value: &str) -> Option<Origin> {
276 if value.eq_ignore_ascii_case("null") {

Calls 2

request_hostFunction · 0.85
parse_origin_authorityFunction · 0.85

Tested by

no test coverage detected