Function rmoods_backend::reddit::connection::create_ratelimit_log
source ยท fn create_ratelimit_log(res: &Response) -> String
Expand description
Read Reddit headers from the provided [reqwest::Request] and return a string ready to log. Used for monitoring API usage.
The string contains information about:
- Number of remaining requests in the current period (1000s)
- Number of seconds until new period
- Number of requests used in the current period