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

Method new

crates/openshell-ocsf/src/objects/http.rs:51–58  ·  view source on GitHub ↗
(scheme: &str, hostname: &str, path: &str, port: u16)

Source from the content-addressed store, hash-verified

49 /// Create a URL from its components.
50 #[must_use]
51 pub fn new(scheme: &str, hostname: &str, path: &str, port: u16) -> Self {
52 Self {
53 scheme: Some(scheme.to_string()),
54 hostname: Some(hostname.to_string()),
55 path: Some(path.to_string()),
56 port: Some(port),
57 }
58 }
59
60 /// Format as a display string.
61 ///

Callers

nothing calls this directly

Calls 1

parseMethod · 0.45

Tested by

no test coverage detected