lookup> text/x-c

text/x-c

text/x-c is a text media type commonly associated with .c, .cc, .cxx, .cpp, .h, .hh, .dic extensions.

MIME typetext/x-c
Extensions.c .cc .cxx .cpp .h .hh
Charset
Compressible
Sourceapache

text/x-c

text/x-c is one of the text media types used on the internet. When serving this content over HTTP, set the Content-Type header in the response, for example:

Content-Type: text/x-c

Related entities: associated extensions include .c.cc.cxx.cpp, and is delivered over HTTP via the Content-Type header, commonly with GET, POST, PUT and PATCH requests.

Related formats:

C Source FileC++ Source FileCXX Data & Text
.c .cc .cxxserved as
mime type
text/x-csent via header
http header

text/x-c is identified in HTTP by the Content-Type header and is commonly used with these methods:

What is text/x-c?

text/x-c is a text media type used to identify a content format; servers announce it to clients with the Content-Type header.

Which file extensions use text/x-c?

Extensions such as .c, .cc, .cxx, .cpp are associated with this MIME type.

How do I set the Content-Type for text/x-c?

Send Content-Type: text/x-c in the HTTP response.

Related extensions

Related MIME types

Related headers

Related methods