Class ContentType.

Inherits MimeField

The Content-Type field is defined in RFC 2045 section 5. It contains the media type of an entity body, along with any auxiliary information required to describe the type.

ContentType::ContentType()

Constructs a new ContentType object.

Reimplements Garbage::Garbage().

EString ContentType::subtype() const

Returns the media subtype as a lower-case string.

EString ContentType::type() const

Returns the media type as a lower-case string.

Reimplements HeaderField::type().

ContentType::~ContentType()

This function exists to workaround an incorrect gcc warning about ContentType having virtual functions (it doesn't), but not a virtual destructor.

Reimplements HeaderField::~HeaderField().

This web page based on source code belonging to The Archiveopteryx Developers. All rights reserved.