Variable RewriteHandlerSchemaConst
RewriteHandlerSchema: ZodObject<
{
handler: ZodLiteral<"rewrite">;
query: ZodOptional<
ZodObject<
{
add: ZodOptional<
ZodArray<
ZodObject<
{ key: ZodString; val: ZodString },
"strip",
ZodTypeAny,
{ key: string; val: string },
{ key: string; val: string },
>,
"many",
>,
>;
delete: ZodOptional<ZodArray<ZodString, "many">>;
rename: ZodOptional<
ZodArray<
ZodObject<
{ key: ZodString; val: ZodString },
"strip",
ZodTypeAny,
{ key: string; val: string },
{ key: string; val: string },
>,
"many",
>,
>;
replace: ZodOptional<
ZodArray<
ZodObject<
{
key: ZodOptional<ZodString>;
replace: ZodOptional<ZodString>;
search: ZodOptional<ZodString>;
search_regexp: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
key?: string;
replace?: string;
search?: string;
search_regexp?: string;
},
{
key?: string;
replace?: string;
search?: string;
search_regexp?: string;
},
>,
"many",
>,
>;
set: ZodOptional<
ZodArray<
ZodObject<
{ key: ZodString; val: ZodString },
"strip",
ZodTypeAny,
{ key: string; val: string },
{ key: string; val: string },
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
add?: { key: string; val: string }[];
delete?: string[];
rename?: { key: string; val: string }[];
replace?: {
key?: string;
replace?: string;
search?: string;
search_regexp?: string;
}[];
set?: { key: string; val: string }[];
},
{
add?: { key: string; val: string }[];
delete?: string[];
rename?: { key: string; val: string }[];
replace?: {
key?: string;
replace?: string;
search?: string;
search_regexp?: string;
}[];
set?: { key: string; val: string }[];
},
>,
>;
strip_path_prefix: ZodOptional<ZodString>;
strip_path_suffix: ZodOptional<ZodString>;
uri: ZodOptional<ZodString>;
uri_substring: ZodOptional<
ZodArray<
ZodObject<
{
find: ZodString;
limit: ZodOptional<ZodNumber>;
replace: ZodString;
},
"strip",
ZodTypeAny,
{ find: string; limit?: number; replace: string },
{ find: string; limit?: number; replace: string },
>,
"many",
>,
>;
},
"strip",
ZodTypeAny,
{
handler: "rewrite";
query?: {
add?: { key: string; val: string }[];
delete?: string[];
rename?: { key: string; val: string }[];
replace?: {
key?: string;
replace?: string;
search?: string;
search_regexp?: string;
}[];
set?: { key: string; val: string }[];
};
strip_path_prefix?: string;
strip_path_suffix?: string;
uri?: string;
uri_substring?: { find: string; limit?: number; replace: string }[];
},
{
handler: "rewrite";
query?: {
add?: { key: string; val: string }[];
delete?: string[];
rename?: { key: string; val: string }[];
replace?: {
key?: string;
replace?: string;
search?: string;
search_regexp?: string;
}[];
set?: { key: string; val: string }[];
};
strip_path_prefix?: string;
strip_path_suffix?: string;
uri?: string;
uri_substring?: { find: string; limit?: number; replace: string }[];
},
> = ...
Rewrite handler schema - URI rewriting