@accelerated-software-development/caddy-api-client - v0.4.3
    Preparing search index...

    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.

    const handler = PushHandlerSchema.parse({
    handler: "push",
    resources: [
    { target: "/css/style.css" },
    { target: "/js/app.js", method: "GET" }
    ],
    headers: { "X-Push": ["true"] }
    });