Skip to content

Procedure HTTP API: review and revise convenience methods on Body #3777

@gefjon

Description

@gefjon

See #3766 (comment) .

It's unfortunate that all of our methods on Body (e.g. into_string, into_bytes, into_string_lossy) take self owned, meaning you can't effectively pull data out of the http::Request<Body> without calling either into_parts or into_body. We should revise some or all of these methods to take &self receivers, or add new methods which take &self receivers additionally.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions