MCPcopy Index your code
hub / github.com/google/adk-python / _normalize_origin_scheme

Function _normalize_origin_scheme

src/google/adk/cli/api_server.py:142–148  ·  view source on GitHub ↗

Normalize request schemes to the browser Origin scheme space.

(scheme: str)

Source from the content-addressed store, hash-verified

140
141
142def _normalize_origin_scheme(scheme: str) -> str:
143 """Normalize request schemes to the browser Origin scheme space."""
144 if scheme == "ws":
145 return "http"
146 if scheme == "wss":
147 return "https"
148 return scheme
149
150
151def _strip_optional_quotes(value: str) -> str:

Callers 1

_get_request_originFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected