@selfage/service_handler
Version:
Http-based service handlers on top of expressjs.
13 lines (12 loc) • 536 B
TypeScript
import express = require("express");
import { RemoteCallHandlerInterface } from "@selfage/service_descriptor/remote_call_handler_interface";
export declare class BaseRemoteCallHandler {
private allowOrigin;
static create(allowOrigin: string): BaseRemoteCallHandler;
constructor(allowOrigin: string);
handle(remoteCallHandler: RemoteCallHandlerInterface, req: express.Request, res: express.Response): Promise<void>;
private handleRequest;
private destringify;
private deserialize;
private sendResponse;
}