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

One exact URL-keyed cached document observation. More...

#include <mdl_cache.h>

Data Fields

char url [k_mdl_url_max]
 Exact canonical request URL.
char relative_path [k_mdl_relpath_max]
 Body leaf beneath the host dir.
char etag [k_mdl_etag_max]
 Last response ETag, or empty.
char last_modified [k_mdl_last_mod_max]
 Last-Modified, or empty.
uint64_t url_hash
 FNV identity accelerator.
uint64_t content_hash
 Exact persisted body identity.
int64_t fetched_at
 Completion epoch seconds.
uint16_t response_status
 Last observed HTTP status.

Detailed Description

One exact URL-keyed cached document observation.

The URL is retained in full so a non-cryptographic hash collision cannot select another document.

Invariant
Strings are NUL-terminated and contain no line-control bytes.
Since
0.1.0

Definition at line 37 of file mdl_cache.h.

Field Documentation

◆ content_hash

uint64_t mdl_cache_record_t::content_hash

Exact persisted body identity.

Definition at line 43 of file mdl_cache.h.

Referenced by internal_cache_encode_record(), and priv_mdl_cache_read_body().

◆ etag

◆ fetched_at

int64_t mdl_cache_record_t::fetched_at

◆ last_modified

◆ relative_path

◆ response_status

uint16_t mdl_cache_record_t::response_status

Last observed HTTP status.

Definition at line 45 of file mdl_cache.h.

Referenced by internal_cache_encode_record(), internal_cache_finish_304(), internal_cache_prepare(), and internal_cache_record_valid().

◆ url

◆ url_hash

uint64_t mdl_cache_record_t::url_hash

FNV identity accelerator.

Definition at line 42 of file mdl_cache.h.

Referenced by internal_cache_encode_record(), internal_cache_find(), and internal_cache_record_valid().


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