Skip to main content

Module http

Module http 

Source
Expand description

HTTPS requests to the LCU REST API.

The LCU uses a Riot self-signed TLS certificate. build_lcu_client returns a reqwest::Client configured to accept it, with a 10-second request timeout. Reuse this client — it maintains an internal connection pool.

Constants§

DEFAULT_TIMEOUT
Default per-request timeout applied by build_lcu_client.

Functions§

build_lcu_client
Build a reusable HTTP client configured for the LCU API.
lcu_delete
DELETE an LCU endpoint.
lcu_get
GET an LCU endpoint and deserialize into T.
lcu_post
POST to an LCU endpoint with a JSON-serializable body.
lcu_request
Send an HTTP request with no body to the LCU and deserialize the JSON response as T.
lcu_request_with_body
Send an HTTP request with a JSON-serializable body.
parse_marketing_version
Convert an internal LCU version string to the player-facing patch number.