Closed
Description
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
Labels
No labels