Skip to content

Allow Response to send bytes #33

Closed
@anecdata

Description

@anecdata

A use case came up on Discord (sending jpeg from memory, not a file) for sending bytes rather than a string.

Currently send and send_chunk expect strings, but perhaps with either a parameter or type checking, either could be handled.

Workaround is to use _send_bytes().

Addendum: bytearray, bytes, or memoryview; anything sockets support

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