Spaces:
Running
Running
sync: upstream 9194f15 + custom addons (KeyRotator, RotatingChatTransport, sol/terra/luna, ScannerTrap, health, Py3.12 compat)
e99df76 Download src/free_claude_code/cli/local_http.py from dherain24/claude-proxy: direct link, hf CLI and curl.
- Browser
- Download file 452 Bytes
-
https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/cli/local_http.py
- Command line
-
hf download hf://spaces/dherain24/claude-proxy/src/free_claude_code/cli/local_http.py
-
curl -L -o local_http.py https://huggingface.co/spaces/dherain24/claude-proxy/resolve/main/src/free_claude_code/cli/local_http.py
452 Bytes
| from __future__ import annotations | |
| """Direct HTTP transport for FCC-local traffic.""" | |
| from http.client import HTTPResponse | |
| from urllib.request import ProxyHandler, Request, build_opener | |
| _DIRECT_OPENER = build_opener(ProxyHandler({})) | |
| def open_local_request(request: Request, *, timeout: float) -> HTTPResponse: | |
| """Open an FCC-local request without consulting machine proxy settings.""" | |
| return _DIRECT_OPENER.open(request, timeout=timeout) | |