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)(uint8_t *work);
129 void (*
const cache_control)(uint8_t *work);
130 void (*
const sw_manifest)(uint8_t *work);
131 void (*
const serve_sw)(uint8_t *work);
136void protocore_http_delivery_swr(uint8_t *work);
137void protocore_http_delivery_cache_control(uint8_t *work);
138void protocore_http_delivery_sw_manifest(uint8_t *work);
139void protocore_http_delivery_serve_sw(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,
PROTO_ENUM_PACKED
Application protocol spoken on a listener port or connection slot.
#define PROTOCORE_BEGIN_DECLS
Give a header's declarations C linkage, so their symbol names carry no parameter types.
_Bool proto_bool
The truth value.
#define PROTOCORE_END_DECLS