Yash030/claude-code-proxy
2
1"""Limits and defaults for outbound web server tool HTTP."""2 3_REQUEST_TIMEOUT_S = 20.04_MAX_SEARCH_RESULTS = 105_MAX_FETCH_CHARS = 24_0006# Hard cap on raw bytes read from HTTP responses before decode / HTML parse (memory bound).7_MAX_WEB_FETCH_RESPONSE_BYTES = 2 * 1024 * 10248# Drain at most this many bytes from redirect responses before following Location.9_REDIRECT_RESPONSE_BODY_CAP_BYTES = 65_53610_MAX_WEB_FETCH_REDIRECTS = 1011_WEB_FETCH_REDIRECT_STATUSES = frozenset({301, 302, 303, 307, 308})12 13_WEB_TOOL_HTTP_HEADERS = {14 "User-Agent": "Mozilla/5.0 compatible; free-claude-code/2.0",15}16 