rag-context-optimizer / frontend /node_modules /next /dist /experimental /testing /server /middleware-testing-utils.d.ts
Download frontend/node_modules/next/dist/experimental/testing/server/middleware-testing-utils.d.ts from netzkontrast/rag-context-optimizer: direct link, hf CLI and curl.
- Browser
- Download file 849 Bytes
-
https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/experimental/testing/server/middleware-testing-utils.d.ts
- Command line
-
hf download hf://spaces/netzkontrast/rag-context-optimizer/frontend/node_modules/next/dist/experimental/testing/server/middleware-testing-utils.d.ts
-
curl -L -o middleware-testing-utils.d.ts https://huggingface.co/spaces/netzkontrast/rag-context-optimizer/resolve/main/frontend/node_modules/next/dist/experimental/testing/server/middleware-testing-utils.d.ts
849 Bytes
| import type { IncomingHttpHeaders } from 'http'; | |
| import type { NextConfig } from '../../../server/config-shared'; | |
| import type { MiddlewareConfigMatcherInput } from '../../../build/segment-config/middleware/middleware-config'; | |
| export interface MiddlewareSourceConfig { | |
| matcher?: MiddlewareConfigMatcherInput; | |
| } | |
| /** | |
| * Checks whether the middleware config will match the provide URL and request | |
| * information such as headers and cookies. This function is useful for | |
| * unit tests to assert that middleware is matching (and therefore executing) | |
| * only when it should be. | |
| */ | |
| export declare function unstable_doesMiddlewareMatch({ config, url, headers, cookies, nextConfig, }: { | |
| config: MiddlewareSourceConfig; | |
| url: string; | |
| headers?: IncomingHttpHeaders; | |
| cookies?: Record<string, string>; | |
| nextConfig?: NextConfig; | |
| }): boolean; | |