Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Update Python invoker such that the function being written doesn't depend on flask's response object to return an http status #71

Open
andrew-su opened this issue May 19, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@andrew-su
Copy link
Contributor

Feature Request

Update the Python invoker to handle http status codes. The way to do it currently is to return a Flask.Response object which makes us a leaky abstraction. We want to perhaps update the response we expect from the function to be (status_code, body) or the likes. We need to also consider the situation where we may want to have attributes returned in the case of CloudEvents or whether we want to respond with a specific header.

@bbtong bbtong added the enhancement New feature or request label Jul 13, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants