Skip to content

An API that reads the request body for a specified number of bytes?Β #3113

@marunguy

Description

@marunguy

Is there an API that reads a specified number of bytes from the request body?

https://docs.python.org/3/library/io.html#io.Reader
https://docs.aiohttp.org/en/stable/streams.html#aiohttp.StreamReader.read

This is needed to save portions of the body to multiple files while parsing a large request body.

While it's possible to save the entire request body to a file and then parse the saved file, this functionality is desired to reduce disk I/O.

Multipart is also a possible method, but unfortunately, we are currently unable to change the agent.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions