Variable PushHandlerSchemaConst
PushHandlerSchema: ZodObject<
{
headers: ZodOptional<
ZodObject<
{ HeaderOps: ZodAny },
"strip",
ZodTypeAny,
{ HeaderOps?: any },
{ HeaderOps?: any },
>,
>;
resources: ZodOptional<
ZodArray<
ZodObject<
{ method: ZodOptional<ZodString>; target: ZodOptional<ZodString> },
"strip",
ZodTypeAny,
{ method?: string; target?: string },
{ method?: string; target?: string },
>,
"many",
>,
>;
} & { handler: ZodLiteral<"push"> },
"strip",
ZodTypeAny,
{
handler: "push";
headers?: { HeaderOps?: any };
resources?: { method?: string; target?: string }[];
},
{
handler: "push";
headers?: { HeaderOps?: any };
resources?: { method?: string; target?: string }[];
},
> = ...
Push handler schema - HTTP/2 Server Push
Preemptively sends resources to clients over HTTP/2 before they're requested.