Const
The limits the HTTP bridge enforces unless the shell loosens them: encrypted transport only, three redirects, 10 MiB per response, 20 seconds per request, and no private destinations.
DEFAULT_HTTP_POLICY.allowedSchemes; // ['https:']const bridge = createHttpBridge({ policy: { ...DEFAULT_HTTP_POLICY, maxBytes: 1024 * 1024 } }); Copy
DEFAULT_HTTP_POLICY.allowedSchemes; // ['https:']const bridge = createHttpBridge({ policy: { ...DEFAULT_HTTP_POLICY, maxBytes: 1024 * 1024 } });
The limits the HTTP bridge enforces unless the shell loosens them: encrypted transport only, three redirects, 10 MiB per response, 20 seconds per request, and no private destinations.