1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
pub const FIXTURE_DIR_NAME: &str = "tests/fixtures/tls";
pub const CA_PEM_NAME: &str = "ca.pem";
pub const LEAF_CHAIN_PEM_NAME: &str = "leaf-chain.pem";
pub const LEAF_KEY_NAME: &str = "leaf.key";
pub const MISMATCHED_LEAF_KEY_NAME: &str = "mismatched-leaf.key";
pub const MALFORMED_CERTIFICATE_PEM_NAME: &str = "malformed-certificate.pem";
pub const TRUNCATED_CERTIFICATE_PEM_NAME: &str = "truncated-certificate.pem";
pub const INVALID_PRIVATE_KEY_PEM_NAME: &str = "invalid-private-key.pem";
pub const MISSING_PEM_NAME: &str = "this-file-does-not-exist.pem";
pub const WIRE_HTTP1: &str = "http1";
pub const WIRE_HTTP2: &str = "http2";
pub const WIRE_HTTP3: &str = "http3";
pub const WIRE_UNKNOWN: &str = "http9";
pub const ALPN_HTTP1: & = b"http/1.1";
pub const ALPN_HTTP2: & = b"h2";
pub const ALPN_HTTP3: & = b"h3";
pub const LOOPBACK_HOST: &str = "127.0.0.1";
pub const TLS_SERVER_NAME: &str = "localhost";
pub const PLACEHOLDER_ADDRESS: &str = "127.0.0.1:0";
pub const BIND_ATTEMPTS: usize = 8;
pub const CONNECT_TIMEOUT_SECS: u64 = 15;
pub const REQUEST_TIMEOUT_SECS: u64 = 20;
pub const GATE_TIMEOUT_SECS: u64 = 20;
pub const SERVER_BOOT_MILLIS: u64 = 120;
pub const SHUTDOWN_PROBE_MILLIS: u64 = 250;
pub const SHUTDOWN_TIMEOUT_SECS: u64 = 15;
pub const FAST_STREAM_BUDGET_MILLIS: u64 = 1500;
pub const PROBE_PATH: &str = "/probe";
pub const PROBE_QUERY: &str = "name=hyperlane&kind=protocol";
pub const PROBE_QUERY_KEYS: = ;
pub const PROBE_QUERY_EXPECTED: &str = "name=hyperlane;kind=protocol";
pub const PROBE_METHOD: &str = "GET";
pub const PROBE_HEADER_KEY: &str = "x-probe";
pub const PROBE_HEADER_VALUE: &str = "probe-value";
pub const PROBE_REPEATED_HEADERS: = ;
pub const PROBE_HEADER_EXPECTED: &str = "probe-value;probe-second";
pub const PROBE_METHOD_HEADER: &str = "x-probe-method";
pub const PROBE_PATH_HEADER: &str = "x-probe-path";
pub const PROBE_QUERY_HEADER: &str = "x-probe-query";
pub const PROBE_HEADER_ECHO_HEADER: &str = "x-probe-header";
pub const PROBE_VERSION_HEADER: &str = "x-probe-version";
pub const ECHO_ROUTE_PATH: &str = "/echo";
pub const SLOW_ROUTE_PATH: &str = "/slow";
pub const SPLIT_ROUTE_PATH: &str = "/split";
pub const COOKIE_ROUTE_PATH: &str = "/cookie";
pub const LARGE_ROUTE_PATH: &str = "/large";
pub const BINARY_ROUTE_PATH: &str = "/binary";
pub const SSE_ROUTE_PATH: &str = "/sse";
pub const SSE_ROUTE_PATH_HTTP2: &str = "/sse-h2";
pub const SSE_ROUTE_PATH_HTTP3: &str = "/sse-h3";
pub const SLOW_ROUTE_PATH_HTTP3: &str = "/slow-h3";
pub const VERSION_ROUTE_PATH: &str = "/version";
pub const HOP_BY_HOP_ROUTE_PATH: &str = "/hop-by-hop";
pub const HOP_BY_HOP_CLEAN_ROUTE_PATH: &str = "/hop-by-hop-clean";
pub const SOCKET_METADATA_ROUTE_PATH: &str = "/socket-metadata";
pub const UNFRAMED_BODY_ROUTE_PATH: &str = "/unframed";
pub const SLOW_DONE_BODY: &str = "slow-done";
pub const COOKIE_SENT_BODY: &str = "cookie-sent";
pub const HOP_BY_HOP_SENT_BODY: &str = "hop-by-hop-sent";
pub const FIRST_COOKIE_NAME: &str = "dup";
pub const FIRST_COOKIE_VALUE: &str = "one";
pub const SECOND_COOKIE_NAME: &str = "dup2";
pub const SECOND_COOKIE_VALUE: &str = "two";
pub const PRESERVED_HEADER_KEY: &str = "x-end-to-end";
pub const PRESERVED_HEADER_VALUE: &str = "kept";
pub const INTERNAL_CONNECTION_HEADER: &str = "x-internal";
pub const INTERNAL_CONNECTION_VALUE: &str = "secret";
pub const HOSTILE_BYTES_LEN: usize = 1024;
pub const ABOVE_FLOW_CONTROL_WINDOW_LEN: usize = 1024 * 1024;
pub const SSE_FIRST_CHUNK: &str = "data:first\n\n";
pub const SSE_SECOND_CHUNK: &str = "data:second\n\n";
pub const SPLIT_HEAD_BODY: &str = "head-part";
pub const SPLIT_TAIL_BODY: &str = "tail-part";
pub const SPLIT_BODY_LEN: usize = 18;
pub const SPLIT_FRAGMENT_LEN: usize = 5;
pub const UNFRAMED_BODY: &str = "body-with-no-content-length";
pub const SOCKET_METADATA_SEPARATOR: char = '|';
pub const SERVER_CONFIG_LEGACY_ADDRESS: &str = "127.0.0.1:8080";
const PROBE_SECOND_VALUE: &str = "probe-second";