Skip to content

Deprecate stream.unread_data #3260

Closed
Closed
@asvetlov

Description

stream.unread_data() is a leaking abstracton: it violates chunk boundaries at least.
Aso, it prevents some optimizations.

The call is used in multipart. We already have MultipartBodyReader._unread buffer, replacement stream.unread_data() wit appending to self._unread looks feasible.

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions