UNPKG

astro

Version:

Astro is a modern site builder with web best practices, performance, and DX front-of-mind.

12 lines (11 loc) • 537 B
import type { FetchState } from '../fetch/fetch-state.js'; /** * Returns an empty `400 Bad Request` response when the request path was * encoded too many times to fully decode (`state.invalidEncoding`), or * `undefined` otherwise. * * Every entry point that routes the request or runs middleware calls this * first, so composable pipelines reject the request the same way * `handleRequest` does regardless of which handlers they include. */ export declare function rejectInvalidEncoding(state: FetchState): Response | undefined;