Skip to content

Add move semantic for httplib::Result::res_::body #723

@Bulb4

Description

@Bulb4

Currently we need to copy body's value, because all httplib::Result getters are const. There is also no way to get httplib::Result::_res ownership because it is private and unique_ptr.
It would be nice to by able to use std::move for body, if we want to store it somewhere, and use after result destruction.

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