Skip to content
This repository was archived by the owner on Oct 25, 2023. It is now read-only.
This repository was 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

@andrew-su

Description

@andrew-su

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions