Skip to content

Conversion from http::Request to http_types::Request fails #137

Open
@Nemo157

Description

@Nemo157

When converting an http::Request from hyper to an http_types::Request the url fails to convert with an error:

relative URL without a base

small example problem showing the failure:

use std::convert::TryFrom;

fn main() {
    let request = http::Request::builder()
        .method("GET")
        .uri("/")
        .header("Host", "localhost")
        .body(http_types::Body::empty())
        .unwrap();

    http_types::Request::try_from(request).unwrap();
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    semver-majorThis change requires a semver major change

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions