'Returns the ``Content-Type`` header to be used for this request.
.. versionadded:: 3.1'

def get_content_type(self):

    (mime_type, encoding) = mimetypes.guess_type(self.absolute_path)
    return mime_type
