Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LaunchPlatform/beanhub-cli
/ get_client_headers
Function
get_client_headers
beanhub_cli/http_client.py:20–25 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
18
19
20
def
get_client_headers() -> dict[str, str]:
21
cli_version = get_cli_version()
22
return
{
23
"User-Agent"
: f
"{PACKAGE_NAME}/{cli_version}"
,
24
CLIENT_VERSION_HEADER: cli_version,
25
}
26
27
28
def
make_client(base_url: str) -> Client:
Callers
5
test_get_client_headers
Function · 0.90
test_make_client_includes_version_headers
Function · 0.90
test_make_auth_client_includes_version_headers
Function · 0.90
make_client
Function · 0.85
make_auth_client
Function · 0.85
Calls
1
get_cli_version
Function · 0.85
Tested by
3
test_get_client_headers
Function · 0.72
test_make_client_includes_version_headers
Function · 0.72
test_make_auth_client_includes_version_headers
Function · 0.72