Düzenle

Aracılığıyla paylaş


BotFrameworkHttpAdapter interface

Warning

This API is now deprecated.

Use CloudAdapter instead. BotFrameworkHttpAdapter is the interface that describes a Bot Framework adapter that operates on HTTP requests.

Methods

process(Request, INodeSocket, INodeBuffer, (context: TurnContext) => Promise<void>)

Handle a web socket connection by applying a logic callback function to each streaming request.

process(Request, Response, (context: TurnContext) => Promise<void>)

Process a web request by applying a logic callback function.

Method Details

process(Request, INodeSocket, INodeBuffer, (context: TurnContext) => Promise<void>)

Handle a web socket connection by applying a logic callback function to each streaming request.

function process(req: Request, socket: INodeSocket, head: INodeBuffer, logic: (context: TurnContext) => Promise<void>): Promise<void>

Parameters

req

Request

socket

INodeSocket

head

INodeBuffer

logic

(context: TurnContext) => Promise<void>

Returns

Promise<void>

process(Request, Response, (context: TurnContext) => Promise<void>)

Process a web request by applying a logic callback function.

function process(req: Request, res: Response, logic: (context: TurnContext) => Promise<void>): Promise<void>

Parameters

req

Request

res

Response

logic

(context: TurnContext) => Promise<void>

Returns

Promise<void>