Name

Content-Language

Synopsis

The Content-Language header tells the client the natural language that should be understood in order to understand the object. For instance, a document written in French would have a Content-Language value indicating French. If this header is not present in the response, the object is intended for all audiences. Multiple languages in the header’s value indicate that the object is suitable for audiences of each language listed.

One caveat about this header is that the header’s value may just represent the natural language of the intended audience of this object, not all or any of the languages contained in the object. Also, this header is not limited to text or written data objects; images, video, and other media types can be tagged with their intended audiences’ natural languages.

Type

Entity header

Basic Syntax

Content-Language: 1# language-tag

Examples

Content-Language: en

Content-Language: en, fr

Get HTTP: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.