ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
mdl_http_state Struct Reference

Single retained ESP-IDF client and one serialized remote transfer. More...

Collaboration diagram for mdl_http_state:

Data Fields

esp_http_client_handle_t http
 Retained ESP HTTP client handle.
mbedtls_sha256_context sha
 Retained streaming SHA context.
char url [k_ra8_mdl_url_max]
 Bounded active HTTPS URL.
char user_agent [k_ra8_mdl_user_agent_max]
 Active User-Agent request value.
char referer [k_ra8_mdl_referer_max]
 Active Referer request value.
char if_none_match [k_ra8_mdl_etag_max]
 Active If-None-Match request value.
char if_modified_since [k_ra8_mdl_http_date_max]
 Active If-Modified-Since request value.
ra8_mdl_http_response_t response
 Selected terminal response metadata.
ra8_err_t header_error
 First response-header capture failure.
uint64_t total
 Advertised body length, or zero.
uint64_t received
 Independently counted body bytes.
mdl_format_t format
 Requested artifact identity.
bool total_known
 Whether Content-Length was present.
bool opened
 Whether response headers were accepted.
bool hashing
 Whether a SHA operation is active.

Detailed Description

Single retained ESP-IDF client and one serialized remote transfer.

Invariant
http and sha are initialised once before service dispatch.
received counts exactly the bytes supplied to the SHA context.

Definition at line 40 of file mdl_service.c.

Field Documentation

◆ format

mdl_format_t mdl_http_state::format

Requested artifact identity.

Definition at line 52 of file mdl_service.c.

Referenced by internal_mdl_http_begin(), and internal_mdl_http_reset_job().

◆ hashing

bool mdl_http_state::hashing

Whether a SHA operation is active.

Definition at line 55 of file mdl_service.c.

Referenced by internal_mdl_http_begin(), and internal_mdl_http_reset_job().

◆ header_error

ra8_err_t mdl_http_state::header_error

First response-header capture failure.

Definition at line 49 of file mdl_service.c.

Referenced by internal_mdl_http_event(), internal_mdl_http_open(), and internal_mdl_http_reset_job().

◆ http

◆ if_modified_since

char mdl_http_state::if_modified_since[k_ra8_mdl_http_date_max]

Active If-Modified-Since request value.

Definition at line 47 of file mdl_service.c.

Referenced by internal_mdl_http_apply_request(), and internal_mdl_http_reset_job().

◆ if_none_match

char mdl_http_state::if_none_match[k_ra8_mdl_etag_max]

Active If-None-Match request value.

Definition at line 46 of file mdl_service.c.

Referenced by internal_mdl_http_apply_request(), and internal_mdl_http_reset_job().

◆ opened

bool mdl_http_state::opened

Whether response headers were accepted.

Definition at line 54 of file mdl_service.c.

Referenced by internal_mdl_http_open(), and internal_mdl_http_reset_job().

◆ received

uint64_t mdl_http_state::received

Independently counted body bytes.

Definition at line 51 of file mdl_service.c.

Referenced by internal_mdl_http_account_read(), internal_mdl_http_finish(), and internal_mdl_http_reset_job().

◆ referer

char mdl_http_state::referer[k_ra8_mdl_referer_max]

Active Referer request value.

Definition at line 45 of file mdl_service.c.

Referenced by internal_mdl_http_apply_request(), and internal_mdl_http_reset_job().

◆ response

ra8_mdl_http_response_t mdl_http_state::response

Selected terminal response metadata.

Definition at line 48 of file mdl_service.c.

Referenced by internal_mdl_http_finish(), internal_mdl_http_open(), internal_mdl_http_reset_job(), and internal_mdl_select_response_header().

◆ sha

mbedtls_sha256_context mdl_http_state::sha

Retained streaming SHA context.

Definition at line 42 of file mdl_service.c.

Referenced by internal_mdl_http_account_read(), internal_mdl_http_begin(), internal_mdl_http_finish(), and internal_mdl_http_init().

◆ total

uint64_t mdl_http_state::total

Advertised body length, or zero.

Definition at line 50 of file mdl_service.c.

Referenced by internal_mdl_http_account_read(), internal_mdl_http_finish(), internal_mdl_http_open(), and internal_mdl_http_reset_job().

◆ total_known

bool mdl_http_state::total_known

Whether Content-Length was present.

Definition at line 53 of file mdl_service.c.

Referenced by internal_mdl_http_account_read(), internal_mdl_http_finish(), internal_mdl_http_open(), and internal_mdl_http_reset_job().

◆ url

char mdl_http_state::url[k_ra8_mdl_url_max]

Bounded active HTTPS URL.

Definition at line 43 of file mdl_service.c.

Referenced by internal_mdl_http_apply_request(), internal_mdl_http_begin(), and internal_mdl_http_reset_job().

◆ user_agent

char mdl_http_state::user_agent[k_ra8_mdl_user_agent_max]

Active User-Agent request value.

Definition at line 44 of file mdl_service.c.

Referenced by internal_mdl_http_apply_request(), and internal_mdl_http_reset_job().


The documentation for this struct was generated from the following file: