MessageText-based
message/http
HTTP Message
Reference for message/http, the MIME type for encapsulated HTTP request or response messages.
MIME Type Detector
Drop a file to detect its MIME type — no upload, runs in your browser
📄
Drop any file here or click to choose
HTTP Content-Type Header
HTTP Header
Content-Type: message/http; charset=utf-8Quick Facts
| MIME Type | message/http |
| Category | Message |
| Type | Text-based (human-readable) |
Common Usage
message/http wraps a complete HTTP request or response message as a MIME entity. It is used in HTTP TRACE responses, message forwarding, caching proxies, and debugging tools that need to encapsulate HTTP transactions for logging or replay.
Code Examples
HTML
<!-- Set MIME type in meta or fetch headers -->
<meta http-equiv="Content-Type" content="message/http">Node.js
// Express.js
app.get('/file', (req, res) => {
res.type('message/http');
res.send(data);
});
// Node.js http
res.writeHead(200, { 'Content-Type': 'message/http' });nginx
# nginx.conf — add to types block or use default
types {
message/http http;
}
# Or set for a specific location
location /api/ {
default_type message/http;
}Related MIME Types
More Message MIME Types
Other message types in the Message family
Related Tools
Explore More MIME Types
Browse our complete reference of 185 MIME types with usage examples, HTTP headers, and code snippets.