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

Function websocket_l7_config

crates/openshell-supervisor-network/src/proxy.rs:4382–4402  ·  view source on GitHub ↗
(
        protocol: crate::l7::L7Protocol,
        websocket_credential_rewrite: bool,
    )

Source from the content-addressed store, hash-verified

4380 use tokio::net::{TcpListener, TcpStream};
4381
4382 fn websocket_l7_config(
4383 protocol: crate::l7::L7Protocol,
4384 websocket_credential_rewrite: bool,
4385 ) -> crate::l7::L7EndpointConfig {
4386 crate::l7::L7EndpointConfig {
4387 protocol,
4388 path: "/**".to_string(),
4389 tls: crate::l7::TlsMode::Auto,
4390 enforcement: crate::l7::EnforcementMode::Enforce,
4391 graphql_max_body_bytes: crate::l7::graphql::DEFAULT_MAX_BODY_BYTES,
4392 json_rpc_max_body_bytes: crate::l7::jsonrpc::DEFAULT_MAX_BODY_BYTES,
4393 mcp_strict_tool_names: true,
4394 allow_encoded_slash: false,
4395 websocket_credential_rewrite,
4396 request_body_credential_rewrite: false,
4397 websocket_graphql_policy: false,
4398 credential_signing: crate::l7::CredentialSigning::None,
4399 signing_service: String::new(),
4400 signing_region: String::new(),
4401 }
4402 }
4403
4404 #[test]
4405 fn tunnel_protocol_classification_detects_supported_protocols() {

Calls

no outgoing calls