25#ifndef PROTOCORE_HTTP_DELIVERY_H
26#define PROTOCORE_HTTP_DELIVERY_H
30#if PROTOCORE_ENABLE_HTTP_DELIVERY
42 DELIVERY_STALE_REVALIDATE = 1,
61} HttpDeliveryCacheControlArgs;
66 const char *
const *paths;
71} HttpDeliverySwManifestArgs;
76 const char *
const *paths;
79} HttpDeliveryServeSwArgs;
113 HttpDeliverySwrArgs swr_args;
114 HttpDeliveryCacheControlArgs cache_control_args;
115 HttpDeliverySwManifestArgs sw_manifest_args;
116 HttpDeliveryServeSwArgs serve_sw_args;
118 DeliveryVerdict value;
123extern HttpDeliveryVars HttpDeliveryV;
128 void (*
const swr)(
const uint8_t *work);
129 void (*
const cache_control)(
const uint8_t *work);
130 void (*
const sw_manifest)(
const uint8_t *work);
131 void (*
const serve_sw)(
const uint8_t *work);
136void protocore_http_delivery_swr(
const uint8_t *work);
137void protocore_http_delivery_cache_control(
const uint8_t *work);
138void protocore_http_delivery_sw_manifest(
const uint8_t *work);
139void protocore_http_delivery_serve_sw(
const uint8_t *work);
145static const HttpDeliveryNs HttpDelivery __attribute__((unused)) = {
146 .swr = protocore_http_delivery_swr,
147 .cache_control = protocore_http_delivery_cache_control,
148 .sw_manifest = protocore_http_delivery_sw_manifest,
149 .serve_sw = protocore_http_delivery_serve_sw,
EMBED_ENUM_BYTE(ProtoConn, PROTO_NONE=0, PROTO_HTTP=1, PROTO_TELNET=2, PROTO_SSH=3, PROTO_MODBUS=4, PROTO_OPCUA=5, PROTO_SSH_RFWD=6, PROTO_RELAY=7, PROTO_BRIDGE=8, PROTO_NTRIP_CASTER=9, PROTO_MESH=10, PROTO_UDP=11,)
Application protocol spoken on a listener port or connection slot.