1#ifndef LINTEL_CONTENTTYPE_H
2#define LINTEL_CONTENTTYPE_H
154 constexpr operator Value()
const {
return m_value; }
156 explicit operator bool() =
delete;
Definition ContentType.h:11
constexpr ContentType(Value value)
Definition ContentType.h:149
std::string getName() const
static constexpr std::array< Mapping, 39 > kNameToValue
Definition ContentType.h:63
Value
Definition ContentType.h:13
@ ApplicationXTar
Definition ContentType.h:47
@ ImageWebp
Definition ContentType.h:26
@ AudioWebm
Definition ContentType.h:35
@ ImageXIcon
Definition ContentType.h:27
@ AudioMpeg
Definition ContentType.h:34
@ UNDEFINED
Definition ContentType.h:14
@ ImageSvgXml
Definition ContentType.h:25
@ AudioWave
Definition ContentType.h:36
@ TextHtml
Definition ContentType.h:19
@ ApplicationXsltXml
Definition ContentType.h:49
@ ImageBmp
Definition ContentType.h:22
@ ApplicationX7vCompressed
Definition ContentType.h:41
@ FontWoff2
Definition ContentType.h:40
@ ApplicationXml
Definition ContentType.h:50
@ ImageJpeg
Definition ContentType.h:29
@ FontOtf
Definition ContentType.h:37
@ AudioMp3
Definition ContentType.h:33
@ ApplicationWasm
Definition ContentType.h:53
@ ImageApng
Definition ContentType.h:20
@ ApplicationRssXml
Definition ContentType.h:46
@ VideoMp4
Definition ContentType.h:30
@ ApplicationXhtmlXml
Definition ContentType.h:48
@ ImageGif
Definition ContentType.h:23
@ TextVtt
Definition ContentType.h:18
@ ApplicationPdf
Definition ContentType.h:43
@ FontWoff
Definition ContentType.h:39
@ TextPlain
Definition ContentType.h:17
@ ApplicationJson
Definition ContentType.h:45
@ ApplicationJavascript
Definition ContentType.h:44
@ ImageTiff
Definition ContentType.h:28
@ ApplicationGzip
Definition ContentType.h:51
@ ApplicationZip
Definition ContentType.h:52
@ VideoWebm
Definition ContentType.h:32
@ ApplicationAtomXml
Definition ContentType.h:42
@ ImageAvif
Definition ContentType.h:21
@ VideoMpeg
Definition ContentType.h:31
@ TextCss
Definition ContentType.h:15
@ TextCsv
Definition ContentType.h:16
@ ImagePng
Definition ContentType.h:24
@ FontTtf
Definition ContentType.h:38
static constexpr std::array< Mapping, 39 > kValueToName
Definition ContentType.h:106
ContentType(const std::string &contentType)
constexpr Value getValue() const
Definition ContentType.h:159
Definition BaseFeature.h:6
constexpr std::string_view type_name()
Definition TypeName.h:9
Definition ContentType.h:57
std::string_view name
Definition ContentType.h:59
Value value
Definition ContentType.h:58