Skip to main content

Module client

Module client 

Source
Expand description

HTTP client wrapper around the ROMM API.

RommClient owns a configured reqwest::Client plus base URL and authentication settings. Frontends (CLI, TUI, or a future GUI) depend on this type instead of talking to reqwest directly.

Structs§

RommClient
High-level HTTP client for the ROMM API.

Functions§

api_root_url
Same as crate::config::normalize_romm_origin: browser-style origin for RomM (no /api suffix).
openapi_spec_urls
URLs to try for the OpenAPI JSON document (scheme fallback and alternate paths).
resolve_openapi_root
Origin used to fetch /openapi.json (same as the RomM website). Normally equals normalize_romm_origin applied to API_BASE_URL.