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

Function endpoint_scheme

crates/openshell-server/src/service_routing.rs:65–74  ·  view source on GitHub ↗
(config: &openshell_core::Config)

Source from the content-addressed store, hash-verified

63}
64
65fn endpoint_scheme(config: &openshell_core::Config) -> &'static str {
66 if config.tls.is_none()
67 || (config.bind_address.ip().is_loopback()
68 && config.service_routing.enable_loopback_service_http)
69 {
70 "http"
71 } else {
72 "https"
73 }
74}
75
76fn endpoint_host(config: &ServiceRoutingConfig, sandbox: &str, service: &str) -> Option<String> {
77 let base_domain = config.base_domains.first()?;

Callers 1

endpoint_urlFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected