File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -20,22 +20,6 @@ const fetch = require('node-fetch');
2020// [END functions_background_promise_node8]
2121// [END functions_background_async]
2222
23- /**
24- * HTTP Cloud Function (same signature as other Node runtimes)
25- *
26- * @param {Object } req Cloud Function request context.
27- * More info: https://expressjs.com/en/api.html#req
28- * @param {Object } res Cloud Function response context.
29- * More info: https://expressjs.com/en/api.html#res
30- */
31- // [START functions_tips_terminate_node8]
32- const escapeHtml = require ( 'escape-html' ) ;
33-
34- exports . helloHttp = ( req , res ) => {
35- res . send ( `Hello ${ escapeHtml ( req . query . name || req . body . name || 'World' ) } !` ) ;
36- } ;
37- // [END functions_tips_terminate_node8]
38-
3923// [START functions_tips_infinite_retries_node8]
4024/**
4125 * Background Cloud Function that only executes within a certain time
You can’t perform that action at this time.
0 commit comments