lib/http-api-adapters
encodeUrlEncoded()
encodeUrlEncoded(object): string
オブジェクトをURLエンコードされた文字列としてエンコードします。
パラメーター
パラメーター | 型 |
---|---|
オブジェクト | Record <string , any > |
戻り値
文字列
toExpressResponse()
toExpressResponse(response, res): Promise<void>
WebレスポンスをExpressレスポンスに適合させ、レスポンスを処理するために適切なExpressレスポンスメソッドを呼び出します。
パラメーター
パラメーター | 型 |
---|---|
response | レスポンス |
res | Response <any , Record <string , any >> |
戻り値
Promise
<void
>
toWebRequest()
toWebRequest(req): Request
ExpressリクエストをWebリクエストに適合させ、Webリクエストを返します。
パラメーター
パラメーター | 型 |
---|---|
req | Request <ParamsDictionary , any , any , ParsedQs , Record <string , any >> |