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

Function request

crates/openshell-supervisor-network/src/l7/graphql.rs:582–591  ·  view source on GitHub ↗
(method: &str, target: &str)

Source from the content-addressed store, hash-verified

580 use super::*;
581
582 fn request(method: &str, target: &str) -> L7Request {
583 L7Request {
584 action: method.to_string(),
585 target: target.to_string(),
586 query_params: crate::l7::rest::parse_target_query(target).unwrap().1,
587 raw_header: format!("{method} {target} HTTP/1.1\r\nHost: example.com\r\n\r\n")
588 .into_bytes(),
589 body_length: BodyLength::None,
590 }
591 }
592
593 #[test]
594 fn classifies_simple_query() {

Calls 1

parse_target_queryFunction · 0.85