UNPKG

891 BTypeScriptView Raw
1import type { INodeBuffer, INodeSocket } from 'botframework-streaming';
2import type { Request, Response } from './interfaces';
3import type { TurnContext } from 'botbuilder-core';
4/**
5 * @deprecated Use `CloudAdapter` instead.
6 * BotFrameworkHttpAdapter is the interface that describes a Bot Framework
7 * adapter that operates on HTTP requests.
8 */
9export interface BotFrameworkHttpAdapter {
10 /**
11 * Process a web request by applying a logic callback function.
12 */
13 process(req: Request, res: Response, logic: (context: TurnContext) => Promise<void>): Promise<void>;
14 /**
15 * Handle a web socket connection by applying a logic callback function to
16 * each streaming request.
17 */
18 process(req: Request, socket: INodeSocket, head: INodeBuffer, logic: (context: TurnContext) => Promise<void>): Promise<void>;
19}
20//# sourceMappingURL=botFrameworkHttpAdapter.d.ts.map
\No newline at end of file