http_type/content_type/enum.rs
1/// Supported HTTP content types.
2///
3/// Defines common content types for HTTP communication.
4#[derive(Debug, Clone, PartialEq, Eq, Default)]
5pub enum ContentType {
6 /// `application/json` content type.
7 ///
8 /// For JSON data format.
9 ApplicationJson,
10 /// `application/xml` content type.
11 ///
12 /// For XML data format.
13 ApplicationXml,
14 /// `text/plain` content type.
15 ///
16 /// For plain text data.
17 TextPlain,
18 /// `text/html` content type.
19 ///
20 /// For HTML documents.
21 TextHtml,
22 /// `application/x-www-form-urlencoded` content type.
23 ///
24 /// For form data submission.
25 FormUrlEncoded,
26 /// Unknown content type.
27 ///
28 /// For unrecognized content types.
29 #[default]
30 Unknown,
31}