http-type 4.37.0

A library providing essential types for HTTP, including request bodies, response headers, and other core HTTP abstractions.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
/// Represents supported HTTP content types.
#[derive(Debug, Clone, PartialEq, Eq)]
pub enum ContentType {
    /// `application/json`
    ApplicationJson,
    /// `application/xml`
    ApplicationXml,
    /// `text/plain`
    TextPlain,
    /// `text/html`
    TextHtml,
    /// `application/x-www-form-urlencoded`
    FormUrlEncoded,
    /// Unknown or unrecognized content type
    Unknown,
}