Constant http::header::CONTENT_TYPE [−][src]
pub const CONTENT_TYPE: HeaderName=
HeaderName{inner: Repr::Standard(StandardHeader::ContentType),}
Used to indicate the media type of the resource.
In responses, a Content-Type header tells the client what the content type of the returned content actually is. Browsers will do MIME sniffing in some cases and will not necessarily follow the value of this header; to prevent this behavior, the header X-Content-Type-Options can be set to nosniff.
In requests, (such as POST or PUT), the client tells the server what type of data is actually sent.