Home / File/ noop-middleware.ts — astro Source File

noop-middleware.ts — astro Source File

Architecture documentation for noop-middleware.ts, a typescript file in the astro codebase. 2 imports, 0 dependents.

File typescript CoreAstro CoreMiddleware 2 imports 1 functions

Entity Profile

Dependency Diagram

graph LR
  08044481_19eb_d648_6c82_9aecf9da9514["noop-middleware.ts"]
  135a8084_d596_67c2_9209_cca6693604e6["../types/public/common.js"]
  08044481_19eb_d648_6c82_9aecf9da9514 --> 135a8084_d596_67c2_9209_cca6693604e6
  7216d952_4e4a_2d18_a85b_74b4ace79e2b["../core/constants.js"]
  08044481_19eb_d648_6c82_9aecf9da9514 --> 7216d952_4e4a_2d18_a85b_74b4ace79e2b
  style 08044481_19eb_d648_6c82_9aecf9da9514 fill:#6366f1,stroke:#818cf8,color:#fff

Relationship Graph

Source Code

import type { MiddlewareHandler } from '../../types/public/common.js';
import { NOOP_MIDDLEWARE_HEADER } from '../constants.js';

export const NOOP_MIDDLEWARE_FN: MiddlewareHandler = async (_ctx, next) => {
	const response = await next();
	response.headers.set(NOOP_MIDDLEWARE_HEADER, 'true');
	return response;
};

Domain

Subdomains

Dependencies

  • ../core/constants.js
  • ../types/public/common.js

Frequently Asked Questions

What does noop-middleware.ts do?
noop-middleware.ts is a source file in the astro codebase, written in typescript. It belongs to the CoreAstro domain, CoreMiddleware subdomain.
What functions are defined in noop-middleware.ts?
noop-middleware.ts defines 1 function(s): NOOP_MIDDLEWARE_FN.
What does noop-middleware.ts depend on?
noop-middleware.ts imports 2 module(s): ../core/constants.js, ../types/public/common.js.
Where is noop-middleware.ts in the architecture?
noop-middleware.ts is located at packages/astro/src/core/middleware/noop-middleware.ts (domain: CoreAstro, subdomain: CoreMiddleware, directory: packages/astro/src/core/middleware).

Analyze Your Own Codebase

Get architecture documentation, dependency graphs, and domain analysis for your codebase in minutes.

Try Supermodel Free