Something went wrong. Try again.
A free, open-source, self-hosted place to write a novel.
Something went wrong. Try again.
613 B · 17 lines
at main
123456789101112131415161718/** * Types for `request-limits.mjs`, which is plain JavaScript so `server.js` can * load it before the app. The spec in `src/` is type-checked, so the signatures * are written down here once. */
/** The allowance for a route no rule names. */export const DEFAULT_BODY_BYTES: number;
/** The allowance for a route that carries a document. */export const PROSE_BODY_BYTES: number;
/** The allowance for an import and its preview. */export const IMPORT_BODY_BYTES: number;
/** The body allowance for a request target, in bytes. */export function bodyLimitFor(target: string | null | undefined): number;