47#ifndef PROTOCORE_GRPCWEB_H
48#define PROTOCORE_GRPCWEB_H
52#if PROTOCORE_ENABLE_GRPC_WEB
57#define PROTOCORE_GRPCWEB_COMPRESSED 0x01
59#define PROTOCORE_GRPCWEB_TRAILERS 0x80
61#define PROTOCORE_GRPCWEB_PREFIX_LEN 5
67 embed_bool compressed;
86 embed_bool compressed;
131 GrpcWebMessageArgs msg;
132 GrpcWebTrailersArgs trailers;
143extern GrpcWebVars GrpcWebV;
148 void (*
const frame)(
const uint8_t *work);
149 void (*
const frame_message)(
const uint8_t *work);
150 void (*
const frame_trailers)(
const uint8_t *work);
151 void (*
const parse)(
const uint8_t *work);
152 void (*
const trailers_status)(
const uint8_t *work);
153 void (*
const trailers_message)(
const uint8_t *work);
158void protocore_grpc_web_frame(
const uint8_t *work);
159void protocore_grpc_web_frame_message(
const uint8_t *work);
160void protocore_grpc_web_frame_trailers(
const uint8_t *work);
161void protocore_grpc_web_parse(
const uint8_t *work);
162void protocore_grpc_web_trailers_status(
const uint8_t *work);
163void protocore_grpc_web_trailers_message(
const uint8_t *work);
169static const GrpcWebNs GrpcWeb __attribute__((unused)) = {
170 .frame = protocore_grpc_web_frame,
171 .frame_message = protocore_grpc_web_frame_message,
172 .frame_trailers = protocore_grpc_web_frame_trailers,
173 .parse = protocore_grpc_web_parse,
174 .trailers_status = protocore_grpc_web_trailers_status,
175 .trailers_message = protocore_grpc_web_trailers_message,