Function HTTPRequest.contentType
Returns the mime type part of the 'Content-Type' header.
This function gets the pure mime type (e.g. "text/plain")
without any supplimentary parameters such as "charset=...".
Use contentTypeParameters
to get any parameter string or
headers
["Content-Type"] to get the raw value.
Prototypes
string contentType() @property const; void contentType( string ct ) @property;
Authors
Sönke Ludwig, Jan Krüger, Ilya Shipunov
Copyright
© 2012-2013 RejectedSoftware e.K.
License
Subject to the terms of the MIT license, as written in the included LICENSE.txt file.