DeterministicESPAsyncWebServer v6.27.1
Zero-allocation, bounded-execution async HTTP server for ESP32
Loading...
Searching...
No Matches
mime.h File Reference

Shared HTTP Content-Type ("MIME") string constants (one source of truth). More...

Go to the source code of this file.

Detailed Description

Shared HTTP Content-Type ("MIME") string constants (one source of truth).

The same media types were typed as string literals in the core server, the route services, and the examples (text/plain alone appeared ~27 times). These are the single home for the vocabulary: reference the pointer, never re-type the string, so a value can never silently diverge across call sites.

Header-only like hex.h / numparse.h - no .cpp to wire into every test env's src filter. Each is a const char *const to a string literal: the literal lives in the linker's mergeable string section, so there is one copy in flash no matter how many translation units reference it, and an unused one costs nothing.

Author
Douglas Quigg (dstroy0)
Date
2026

Definition in file mime.h.