|
ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
|
Private HTTP classification shared by downloader network backends. More...
Go to the source code of this file.
Functions | |
| ra8_err_t | priv_mdl_net_classify_http (long status) |
| Classify one observed HTTP response status. | |
Private HTTP classification shared by downloader network backends.
Keeps backend-neutral response policy in one portable seam while concrete backends retain ownership of their transport-specific failures.
Definition in file mdl_net_internal.h.
| ra8_err_t priv_mdl_net_classify_http | ( | long | status | ) |
Classify one observed HTTP response status.
Applies the downloader's shared throttle, server-error, and client-error rules after a concrete backend completes its transport.
| [in] | status | Finished HTTP status in the inclusive range 100..599. |
| k_ra8_err_busy | Status 429 or 503 requires governor backoff. |
| k_ra8_fail | Any other status at or above 500. |
| k_ra8_err_not_found | Any other status at or above 400. |
| k_ra8_ok | Status below 400. |
status was obtained from a syntactically valid HTTP response. Definition at line 31 of file mdl_net.c.
References k_mdl_http_client_error, k_mdl_http_server_error, k_mdl_http_too_many, k_mdl_http_unavailable, k_ra8_err_busy, k_ra8_err_not_found, k_ra8_fail, k_ra8_ok, and RA8_PRIV.
Referenced by internal_c6_get(), and priv_mdl_net_curl_classify().