@adonisjs/http-server
Version:
AdonisJS HTTP server with support packed with Routing and Cookies
12 lines (11 loc) • 336 B
TypeScript
import { AsyncLocalStorage } from 'node:async_hooks';
import type { HttpContext } from './main.js';
/**
* Async local storage for HTTP context
*/
export declare const asyncLocalStorage: {
isEnabled: boolean;
storage: null | AsyncLocalStorage<HttpContext>;
create(): AsyncLocalStorage<HttpContext>;
destroy(): void;
};