共用方式為


BotFrameworkHttpAdapter interface

警告

此 API 現已淘汰。

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

方法

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

將邏輯回呼函式套用至每個串流要求,以處理 Web 套接字連線。

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

藉由套用邏輯回呼函式來處理 Web 要求。

方法詳細資料

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

將邏輯回呼函式套用至每個串流要求,以處理 Web 套接字連線。

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

參數

req

Request

socket

INodeSocket

head

INodeBuffer

logic

(context: TurnContext) => Promise<void>

傳回

Promise<void>

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

藉由套用邏輯回呼函式來處理 Web 要求。

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

參數

req

Request

res

Response

logic

(context: TurnContext) => Promise<void>

傳回

Promise<void>