Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Add stream=True for file.download and media.download #105

@ealyn

Description

@ealyn

User need

We must saving memory while download large file.

Requested feature

stream – (optional) if False, the response content will be immediately downloaded.
https://requests.readthedocs.io/en/latest/api/

Modify method Transport.execute to use requests stream argument.

def execute(conf: Config, req: BaseRequest, option: Optional[RequestOption] = None) -> RawResponse:

Maybe you can add stream into RequestOption, and stream_content into RawResponse.

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