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

One download session's identity and robots.txt state. More...

#include <mdl_session.h>

Collaboration diagram for mdl_session_t:

Data Fields

mdl_net_iface_tnet
 Backend used for robots.txt fetches.
const char * user_agent
 Full UA header (caller-owned).
ra8_io_stream_tdiagnostic
 Borrowed diagnostic byte sink.
bool honor_robots
 False disables all robots gating.
mdl_robots_cache_t cache
 Per-host robots cache.
char scratch [k_mdl_session_scratch]
 Fetch scratch.

Detailed Description

One download session's identity and robots.txt state.

Large enough to embed the per-host cache and a fetch scratch buffer; declare one at file scope rather than on the stack.

Invariant
user_agent outlives the session.
See also
mdl_session_url_allowed()
Since
0.1.0

Definition at line 39 of file mdl_session.h.

Field Documentation

◆ cache

mdl_robots_cache_t mdl_session_t::cache

Per-host robots cache.

Definition at line 44 of file mdl_session.h.

Referenced by mdl_session_init(), and mdl_session_url_allowed().

◆ diagnostic

ra8_io_stream_t* mdl_session_t::diagnostic

Borrowed diagnostic byte sink.

Definition at line 42 of file mdl_session.h.

Referenced by internal_report_robots_disallow(), internal_report_robots_unavailable(), mdl_session_init(), and mdl_session_url_allowed().

◆ honor_robots

bool mdl_session_t::honor_robots

False disables all robots gating.

Definition at line 43 of file mdl_session.h.

Referenced by mdl_session_init(), and mdl_session_url_allowed().

◆ net

◆ scratch

char mdl_session_t::scratch[k_mdl_session_scratch]

Fetch scratch.

Definition at line 45 of file mdl_session.h.

Referenced by mdl_session_url_allowed().

◆ user_agent


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