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§
- Romm
Client - 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/apisuffix). - 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 equalsnormalize_romm_originapplied toAPI_BASE_URL.