UNPKG

@sigiljs/sigil

Version:

TypeScript-first Node.js HTTP framework offering schema-driven routing, modifier-based middleware, plugin extensibility, and flexible response templating

16 lines (15 loc) 539 B
import { SigilResponse } from './index'; export interface MiddlewareModificationRequestOptions { headers?: Record<string, any>; code?: number; } /** * If returned from middleware, will replace response status code and merge with * existing headers, instead of returning actual response * * If returned outside of middleware, will act like * default SigilResponse with null as body */ export default class MiddlewareModificationRequest extends SigilResponse { constructor(options: MiddlewareModificationRequestOptions); }