MCPcopy Create free account
hub / github.com/TheSmallHanCat/flow2api / _write_binary_cache

Function _write_binary_cache

src/services/browser_captcha_personal.py:1150–1156  ·  view source on GitHub ↗

Atomically write binary content into the cache.

(cache_path: Path, content: bytes)

Source from the content-addressed store, hash-verified

1148def _redact_proxy_url(proxy_url: Optional[str]) -> str:
1149 """Hide proxy credentials while preserving the endpoint for diagnostics."""
1150 value = str(proxy_url or "").strip()
1151 return re.sub(r"(://)[^/@\s]+:[^/@\s]+@", r"\1***:***@", value)
1152
1153
1154def _parse_windows_proxy_server_candidates(proxy_server: str) -> list[str]:
1155 """Parse Windows Internet Settings ProxyServer into normalized proxy URLs."""
1156 normalized_candidates: list[str] = []
1157 seen: set[str] = set()
1158
1159 for raw_item in str(proxy_server or "").split(";"):

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected