MCPcopy Create free account
hub / github.com/BitterSecurity/Decepticon / _send

Method _send

config/claude_code_handler.py:653–661  ·  view source on GitHub ↗
(force_refresh: bool)

Source from the content-addressed store, hash-verified

651 )
652
653 def _send(force_refresh: bool) -> httpx.Response:
654 access_token = get_access_token(force_refresh=force_refresh)
655 req_headers = _build_headers(access_token)
656 return _http_post(
657 f"{api_url}/v1/messages?beta=true",
658 content=body_str,
659 headers=req_headers,
660 timeout=timeout or 600,
661 )
662
663 resp = with_retry_on_401(_send)
664

Callers

nothing calls this directly

Calls 3

get_access_tokenFunction · 0.85
_build_headersFunction · 0.85
_http_postFunction · 0.85

Tested by

no test coverage detected