WebConstants.h File Reference
#include <WString.h>
Include dependency graph for WebConstants.h:
This graph shows which files directly or indirectly include this file:
Go to the source code of this file.
Namespaces | |
ContentType | |
Macros | |
#define | MIME_TYPE_MAP(XX) |
Basic MIME types and file extensions. More... | |
#define | XX(name, extensionStart, mime) name, |
#define | XX(name, extensionStart, mime) constexpr MimeType MIME_##name = MimeType::name; |
Enumerations | |
enum class | MimeType : uint8_t { XX , UNKNOWN } |
Functions | |
String | toString (MimeType m) |
Get textual representation for a MIME type. More... | |
MimeType | ContentType::fromFileExtension (const char *extension, MimeType unknown) |
Obtain MIME type value from file extension. More... | |
String | ContentType::fromFileExtension (const char *extension) |
Obtain content type string from file extension. More... | |
String | ContentType::fromFileExtension (const String &extension) |
Obtain content type string from file extension. More... | |
MimeType | ContentType::fromString (const char *str) |
Get enumerated value for a MIME type string. More... | |
MimeType | ContentType::fromString (const String &str) |
Get enumerated value for a MIME type string. More... | |
Obtain MIME type value from file name or path, with extension | |
MimeType | ContentType::fromFullFileName (const char *fileName, MimeType unknown) |
MimeType | ContentType::fromFullFileName (const String &fileName, MimeType unknown) |
Obtain content type string from file name or path, with extension | |
String | ContentType::fromFullFileName (const char *fileName) |
String | ContentType::fromFullFileName (const String &fileName) |