Variable HeadersHandlerSchemaConst
HeadersHandlerSchema: ZodObject<
{
handler: ZodLiteral<"headers">;
request: ZodOptional<
ZodObject<
{
add: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>;
delete: ZodOptional<ZodArray<ZodString, "many">>;
set: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>;
},
"strip",
ZodTypeAny,
{
add?: Record<string, string[]>;
delete?: string[];
set?: Record<string, string[]>;
},
{
add?: Record<string, string[]>;
delete?: string[];
set?: Record<string, string[]>;
},
>,
>;
response: ZodOptional<
ZodObject<
{
add: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>;
deferred: ZodOptional<ZodBoolean>;
delete: ZodOptional<ZodArray<ZodString, "many">>;
set: ZodOptional<ZodRecord<ZodString, ZodArray<ZodString, "many">>>;
},
"strip",
ZodTypeAny,
{
add?: Record<string, string[]>;
deferred?: boolean;
delete?: string[];
set?: Record<string, string[]>;
},
{
add?: Record<string, string[]>;
deferred?: boolean;
delete?: string[];
set?: Record<string, string[]>;
},
>,
>;
},
"strip",
ZodTypeAny,
{
handler: "headers";
request?: {
add?: Record<string, string[]>;
delete?: string[];
set?: Record<string, string[]>;
};
response?: {
add?: Record<string, string[]>;
deferred?: boolean;
delete?: string[];
set?: Record<string, string[]>;
};
},
{
handler: "headers";
request?: {
add?: Record<string, string[]>;
delete?: string[];
set?: Record<string, string[]>;
};
response?: {
add?: Record<string, string[]>;
deferred?: boolean;
delete?: string[];
set?: Record<string, string[]>;
};
},
> = ...
Headers handler schema - set/modify request/response headers