Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 0 additions & 16 deletions functions/concepts/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,22 +58,6 @@ exports.executionCount = (req, res) => {
};
// [END functions_concepts_stateless]

// [START functions_concepts_after_response]
/**
* HTTP Cloud Function that may not completely
* execute due to early HTTP response
*
* @param {Object} req Cloud Function request context.
* @param {Object} res Cloud Function response context.
*/
exports.afterResponse = (req, res) => {
res.end();

// This statement may not execute
console.log('Function complete!');
};
// [END functions_concepts_after_response]

// [START functions_concepts_after_timeout]
/**
* HTTP Cloud Function that may not completely
Expand Down