Skip to content

Support bytes as return type #60

@anandology

Description

@anandology

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions