Class ContentType

All Implemented Interfaces:
Serializable, Cloneable, Header, NameValuePair

@Header("Content-Type") public class ContentType extends BasicMediaTypeHeader
Represents a parsed Content-Type HTTP request/response header.

The MIME type of this content.

Example

Content-Type: text/html; charset=utf-8

RFC2616 Specification
The Content-Type entity-header field indicates the media type of the entity-body sent to the recipient or, in the case of the HEAD method, the media type that would have been sent had the request been a GET.

Content-Type = "Content-Type" ":" media-type

Media types are defined in section 3.7. An example of the field is...

Content-Type: text/html; charset=ISO-8859-4

See Also: