Skip to main content

Module http

Module http 

Source
Expand description

Shared HTTP utilities for GitHub API communication.

Provides a single github_headers builder used by both diff fetching and review submission, along with validate_github_base_url for strict allowlisting of GitHub API endpoints.

Functionsยง

build_github_http_client
Builds a reqwest::Client with a standard timeout.
github_diff_headers
Builds headers specifically for fetching PR diffs.
github_headers
Builds default headers for GitHub API requests.
validate_github_base_url
Validates that a GitHub API base URL is on the allowlist.
validate_provider_base_url
Validates that a provider API base URL is safe for use in CI mode.