次の方法で共有


HttpRequestUtils class

Http request utils クラス。

メソッド

executeHttpRequest(string, string, QnAMakerEndpoint, number)

Http 要求を実行します。

メソッドの詳細

executeHttpRequest(string, string, QnAMakerEndpoint, number)

Http 要求を実行します。

function executeHttpRequest(requestUrl: string, payloadBody: string, endpoint: QnAMakerEndpoint, timeout?: number): Promise<QnAMakerResults | KnowledgeBaseAnswers | undefined>

パラメーター

requestUrl

string

Http 要求 URL。

payloadBody

string

Http 要求本文。

endpoint
QnAMakerEndpoint

QnA Maker エンドポイントの詳細。

timeout

number

(省略可能)http 呼び出しのタイムアウト

戻り値

Promise<QnAMakerResults | KnowledgeBaseAnswers | undefined>

QnAMakerResults に解決される promise