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

    Variable StaticResponseHandlerSchemaConst

    StaticResponseHandlerSchema: ZodObject<
        {
            abort: ZodOptional<ZodBoolean>;
            body: ZodOptional<ZodString>;
            close: ZodOptional<ZodBoolean>;
            handler: ZodLiteral<"static_response">;
            headers: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>;
            status_code: ZodOptional<ZodUnion<[ZodNumber, ZodString]>>;
        },
        "strip",
        ZodTypeAny,
        {
            abort?: boolean;
            body?: string;
            close?: boolean;
            handler: "static_response";
            headers?: Record<string, string[]>;
            status_code?: string | number;
        },
        {
            abort?: boolean;
            body?: string;
            close?: boolean;
            handler: "static_response";
            headers?: Record<string, string[]>;
            status_code?: string | number;
        },
    > = ...

    Static response handler schema - return static content

    const healthCheck = StaticResponseHandlerSchema.parse({
    handler: "static_response",
    status_code: 200,
    body: '{"status":"ok"}',
    headers: { "Content-Type": ["application/json"] },
    });