@celosiajs/core
Version:
CelosiaJS Core. A framework for REST API based on Express.js
17 lines (16 loc) • 607 B
TypeScript
import { CelosiaRequest, CelosiaResponse, EmptyObject, NextFunction } from '..';
/**
* Middleware import is not imported from root.
* Because if it is imported from root it will cause cyclical import.
* Which will make this class defined before Middleware is defined.
* Leading to a runtime error.
*/
import Middleware from '../Middleware';
/**
* Add a `Request-Id` header to every response.
*/
declare class SendRequestId extends Middleware {
constructor();
index(_: EmptyObject, request: CelosiaRequest, response: CelosiaResponse, next: NextFunction): void;
}
export default SendRequestId;