Skip to content
New issue

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

Support bytes as return type #60

Open
anandology opened this issue Sep 3, 2017 · 1 comment
Open

Support bytes as return type #60

anandology opened this issue Sep 3, 2017 · 1 comment

Comments

@anandology
Copy link
Member

Add support for functions returning bytes.

It should be possible to run the following function using firefly.

def random_bytes():
    return b'hello'

It should set the appropriate Content-Type. I think the suitable content-type is application/octet-stream, but it is already used for sending files. I think the file type should pick something other content-type.

@palnabarun palnabarun assigned palnabarun and unassigned palnabarun Sep 5, 2017
@droidlife
Copy link

droidlife commented Jul 5, 2018

I think the file type should depend on the extension of the file. If the file extension doesn't exist then we might use application/octet-stream.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants