Skip to content

Why Response::bytes consume self? #2981

Description

@StackOverflowExcept1on

Let's say you want to set up logging (in case of some rate limits), but it's not possible or you'll have to manually copy implementation of json() method.

https://docs.rs/reqwest/latest/reqwest/struct.Response.html#method.json
Image

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