/** * Request Utilities * * Utility functions for request classification, monitoring path detection, * and timeout configuration. * * @module server/runtime-handler/request-utils */ import { HTTP_GATEWAY_TIMEOUT } from "../../utils/constants/http.js"; /** Check if host is a private/internal IP address */ export declare function isInternalHost(host: string): boolean; /** Monitoring paths that should skip domain lookup */ export declare const MONITORING_PATHS: Set; /** Get request timeout in milliseconds (configurable via getRequestTimeout() env var) */ export declare function getRequestTimeout(): number; export { HTTP_GATEWAY_TIMEOUT }; /** Sentinel value for timeout detection (avoids string comparison) */ export declare const TIMEOUT_SENTINEL: unique symbol; /** Check if request path is a monitoring endpoint that should skip domain lookup */ export declare function isMonitoringPath(pathname: string): boolean; /** Lightweight paths that should skip concurrency limiting (modules, static assets) */ export declare const LIGHTWEIGHT_PATH_PREFIXES: string[]; /** Check if path is a lightweight request that should skip concurrency limiting */ export declare function isLightweightPath(pathname: string): boolean; /** Check if path is the WebSocket endpoint (long-lived, handled by HMR handler) */ export declare function isWebSocketPath(pathname: string): boolean; /** Check whether a request is the exact HMR WebSocket upgrade that must retain native identity. */ export declare function isHMRWebSocketUpgrade(request: Request, pathname: string): boolean; /** * Requests that do not need render-specific enriched context. * * These routes still receive the normal handler context, but they can skip * render cache prefix/content-source derivation and the enriched render payload. */ export declare function shouldSkipEnrichedContext(pathname: string): boolean; //# sourceMappingURL=request-utils.d.ts.map