Skip to main content

build_github_http_client

Function build_github_http_client 

Source
pub fn build_github_http_client(
    timeout: Duration,
) -> Result<Client, RsGuardError>
Expand description

Builds a reqwest::Client with a standard timeout.

Shared helper to avoid duplicating client construction across modules that communicate with the GitHub API.

Note: User-Agent is added per-request via github_headers().

ยงErrors

Returns RsGuardError::Config if the TLS backend fails to initialise.