1// Alchemy modifications are licensed under Apache-2.0.
2// This file includes third-party code; see /THIRD_PARTY_LICENSES.md.
3export const REDIRECTS_VERSION = 1;
4export const HEADERS_VERSION = 2;
5
6export const PERMITTED_STATUS_CODES = new Set([200, 301, 302, 303, 307, 308]);
7export const HEADER_SEPARATOR = ":";
8export const MAX_LINE_LENGTH = 2000;
9export const MAX_HEADER_RULES = 100;
10export const MAX_DYNAMIC_REDIRECT_RULES = 100;
11export const MAX_STATIC_REDIRECT_RULES = 2000;
12export const UNSET_OPERATOR = "! ";
13
14export const SPLAT_REGEX = /\*/g;
15export const PLACEHOLDER_REGEX = /:[A-Za-z]\w*/g;
16
17/** Max number of rules in `run_worker_first` */
18export const MAX_ROUTES_RULES = 100;
19/** Max char length of each rule in `run_worker_first` */
20export const MAX_ROUTES_RULE_LENGTH = 100;