nralcm
Version:
This is a framework based on NodeJs to manage rest api request lifecycle
18 lines (17 loc) • 559 B
TypeScript
import { IHttpHandler } from "./IHttpHandler";
import "reflect-metadata/Reflect";
import { RestApiConfiguration } from "../config";
import { Request, Response } from "express-serve-static-core";
/**
* Handler for rest api
*/
export declare class RestApiHandler implements IHttpHandler {
private restApiConfiguration;
constructor(restApiConfiguration: RestApiConfiguration);
/**
* Process request of rest api
* @param req Request object
* @param res Response object
*/
processRequest(req: Request, res: Response): void;
}