Skip to content

Consider using http::{Request, Response} for easier conversion #236

@MarijnS95

Description

@MarijnS95

The http crate was added in 398d3a2, at which point the HttpRequest and HttpResponse types are mostly built up from http types. Would it be (un)reasonable to switch to http Request and Response types entirely? This, in addition to being a more commonly used type, already has builtin conversions for ureq and reqwest:

algesten/ureq#669
https://docs.rs/reqwest/latest/reqwest/struct.Request.html#impl-TryFrom%3CRequest%3CT%3E%3E-for-Request

But perhaps I am overlooking some shortcomings with the http types that make this infeasible? Thanks for considering this at least (and for the record, I'm willing to help out with the conversion)!

I could not find http conversions for the curl crate, unfortunately.

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