Urdl C++ Library

PrevUpHomeNext
read_stream::content_type

Gets the MIME type of the content obtained from the URL.

std::string content_type() const;

Return Value

A string specifying the MIME type. Examples of possible return values include text/plain, text/html and image/png.

Remarks

Not all URL protocols support a content type. For these protocols, this function returns an empty string.


PrevUpHomeNext