Skip to content

StreamWriter appends not wanted information. #475

@MatthiasSchild

Description

@MatthiasSchild

I'm currently working on a mjpeg proxy server with aiohttp. I use the StreamWriter to transmit the information. But if I'm using

sr.write(b"x")
sr.write(b"y")
sr.write(b"z")

the StreamResponse appends the length of the chunk with a newline

x1\r\ny1\r\nz1\r\n

Is there a posibility to send raw data?


EDIT:

I wrote StreamWriter, but i mean StreamResponse.
I've found out that the StreamResponse uses the chunked transfer encoding and those "not wanted information" are part of it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions