ra8-firmware 0.1.0
Bare-metal firmware for the Renesas RA8 family (RA8D2 / RA8P1)
Loading...
Searching...
No Matches
ra8_mdl_http.h
Go to the documentation of this file.
1
17#pragma once
18
19#include <stdint.h>
20
21#include "mdl_format.h"
22#include "ra8_mdl_protocol.h"
23
32typedef struct {
33 const char* user_agent;
34 const char* referer;
35 const char* if_none_match;
36 const char* if_modified_since;
37 uint32_t timeout_ms;
39
54
Shared media artifact format contract for download and export paths.
mdl_format_t
Artifact format selected by a media-download composition root.
Definition mdl_format.h:35
Allocation-free constants shared by the RA8 and C6 media endpoints.
@ k_ra8_mdl_http_date_max
Maximum HTTP-date size, including NUL.
@ k_ra8_mdl_etag_max
Maximum ETag size, including NUL.
@ k_ra8_mdl_content_type_max
Maximum Content-Type size, including NUL.
@ k_ra8_mdl_retry_after_max
Maximum Retry-After size, including NUL.
Bounded request policy forwarded to the C6 HTTP client.
uint32_t timeout_ms
Whole-request timeout, or zero for default.
const char * if_modified_since
If-Modified-Since value, or null/empty.
const char * if_none_match
If-None-Match value, or null/empty to omit.
const char * user_agent
User-Agent value, or null/empty to omit.
const char * referer
Referer value, or null/empty to omit.
HTTP status and selected response headers proven by the C6 backend.
char last_modified[k_ra8_mdl_http_date_max]
Last-Modified or empty.
int32_t status
Final HTTP status.
char retry_after[k_ra8_mdl_retry_after_max]
Retry-After or empty.
char content_type[k_ra8_mdl_content_type_max]
Content-Type or empty.
char etag[k_ra8_mdl_etag_max]
ETag or empty.
Complete typed HTTPS request accepted by protocol version 3.
mdl_format_t format
Exact returned artifact identity.
ra8_mdl_http_policy_t http
Forwarded request policy.
const char * url
Absolute HTTPS source URL.