http_type/content_type/
type.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
/// Represents different types of HTTP content types, such as JSON, XML, plain text, HTML,
/// form URL encoded, and an unknown type.
#[derive(Debug, PartialEq, Eq)]
pub enum ContentType {
    /// Represents the `application/json` content type.
    ApplicationJson,

    /// Represents the `application/xml` content type.
    ApplicationXml,

    /// Represents the `text/plain` content type.
    TextPlain,

    /// Represents the `text/html` content type.
    TextHtml,

    /// Represents the `application/x-www-form-urlencoded` content type.
    FormUrlEncoded,

    /// Represents an unknown or unrecognized content type.
    Unknown,
}