LoginSignup
1
1

More than 5 years have passed since last update.

Cloud Function のHTTPトリガーのrequest contextと response contextはExpressのものと同等

Posted at

Cloud Functionのrequest contextとresponse contextのAPIドキュメントが見つからない。ドキュメントには下記のように書かれている。

/**
 * Responds to any HTTP request that can provide a "message" field in the body.
 *
 * @param {Object} req Cloud Function request context.
 * @param {Object} res Cloud Function response context.
 */

https://cloud.google.com/functions/docs/writing/http

使ってみた感じ Express のものと同等のようだ。

version 4 のもののリンクを貼ったがどのバージョンなのかまでは確認していない。
emulatorの中身見れば分かるような気もする。

Firebaseのドキュメントのほうがだいぶ親切そう。

https://firebase.google.com/docs/functions/http-events?hl=ja

1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1