We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Certain use-cases require function invocations on certain events related to a container's lifecycle or individual function invocation lifecycle.
Here are some possible examples:
on('bad_request', (req, res) => {})
on('startup', (req, res) => {})
on('shutdown', (req, res) => {})
on('before_function', (req, res) => {})
on('after_function', (req, res) => {})
An example API could be the following:
functionsframework.on('bad_request', (e, req, res, next) { if (e.message === "Bad request") { res.status(400).json({error: {msg: e.message, stack: e.stack}}); } });
Feel free to add to this issue for your use-case in a comment.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Certain use-cases require function invocations on certain events related to a container's lifecycle or individual function invocation lifecycle.
Here are some possible examples:
on('bad_request', (req, res) => {})
on('startup', (req, res) => {})
on('shutdown', (req, res) => {})
on('before_function', (req, res) => {})
on('after_function', (req, res) => {})
An example API could be the following:
Feel free to add to this issue for your use-case in a comment.
The text was updated successfully, but these errors were encountered: