Skip to content

ContentType import from hyper::header #2750

@arianxplore

Description

@arianxplore

Version
hyper = { version = "0.14", features = ["full"] }

Platform
Linux skrilla 5.13.0-27-generic #29-Ubuntu SMP Wed Jan 12 17:36:47 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

Description
error[E0432]: unresolved import hyper::header::ContentType
--> src/main.rs:4:35
|
4 | use hyper::header::{CONTENT_TYPE, ContentType};
| ^^^^^^^^^^^ no ContentType in header

[short summary of the bug]
I can't import ContentType

I tried this code:
use hyper::header::{CONTENT_TYPE, ContentType};

[code sample that causes the bug]
use hyper::header::{CONTENT_TYPE, ContentType};

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: bug. Something is wrong. This is bad!

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions