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.

  1. string contentType [@property getter]
  2. string contentType [@property setter]
    class HTTPRequest
    @safe scope @property
    void
    contentType
    (
    string ct
    )

Meta