← marzneshin
/
dashboard/src/modules/hosts/dialogs/mutation/profiles/general/split-http-settings.schema.ts
/
blame
https://dev.kronoz.win/r/marzneshin.git
dashboard/src/modules/hosts/dialogs/mutation/profiles/general/split-http-settings.schema.ts
· v0.7.0
Source
| 1 | 4056c66 | Dawsh | 1y ago | import { z } from "zod"; |
| 2 | 4056c66 | Dawsh | 1y ago | import { XMuxSettingsSchema } from "./x-mux-settings.schema"; |
| 3 | 4056c66 | Dawsh | 1y ago | |
| 4 | 4056c66 | Dawsh | 1y ago | export const splitHttpSettingsModes = ["auto", "packet-up", "stream-up", "stream-one"] |
| 5 | 4056c66 | Dawsh | 1y ago | |
| 6 | 4056c66 | Dawsh | 1y ago | export const SplitHttpSettingsSchema = z.object({ |
| 7 | 4056c66 | Dawsh | 1y ago | mode: z.enum(["auto", "packet-up", "stream-up", "stream-one"]).nullable().optional(), |
| 8 | 4056c66 | Dawsh | 1y ago | no_grpc_header: z.boolean().nullable().optional(), |
| 9 | 4056c66 | Dawsh | 1y ago | padding_bytes: z.string().nullable().optional(), |
| 10 | 4056c66 | Dawsh | 1y ago | xmux: XMuxSettingsSchema.nullable().optional(), |
| 11 | 4056c66 | Dawsh | 1y ago | max_retries: z.number().nullable().optional(), |
| 12 | 4056c66 | Dawsh | 1y ago | timeout: z.string().nullable().optional(), |
| 13 | 4056c66 | Dawsh | 1y ago | }); |