Skip to content

Consider implementing From<mime::THINGS> for http::HeaderValue #164

@lecanard539

Description

@lecanard539

I believe that Memetypes should be valid header values. This makes code like this nice and easy

let mut m = HeaderMap::new();
m.insert(http::header::CONTENT_TYPE, mime::APPLICATION_JSON.into() /* not werks currently */);

I would be happy to try to contribute a merge request.

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