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