18#ifndef PROTOCORE_EDGE_CACHE_PROXY_H
19#define PROTOCORE_EDGE_CACHE_PROXY_H
23#if PC_ENABLE_EDGE_CACHE
35void pc_edge_cache_enable(
PC &server);
45bool pc_edge_cache_map(
const char *path_prefix,
const char *origin_base_url);
47#if PC_ENABLE_EDGE_ORIGIN_TLS
54void pc_edge_cache_set_origin_ca(
const uint8_t *ca_pem,
size_t len);
57void pc_edge_cache_set_origin_pin(
const uint8_t sha256[32]);
70void pc_edge_cache_bind_sd(pc_dbm *dbm);
73#if PC_ENABLE_EDGE_MESH
82bool pc_edge_cache_add_peer(
const char *host, uint16_t port);
89void pc_edge_cache_mesh_serve(
void);
93void pc_edge_cache_reset(
void);
96bool pc_edge_cache_purge(
const char *canonical_key);
99uint32_t pc_edge_cache_purge_prefix(
const char *path_prefix);
102void pc_edge_cache_stats(EdgeCacheStats *out);
Single-port HTTP server with deterministic, zero-allocation execution.
CDN edge-cache tier - pure engine (PC_ENABLE_EDGE_CACHE).
User-facing configuration for ProtoCore.