type(mime_type) {
        // Remove leading dot from mime type if present
        if (mime_type[0] === '.') mime_type = mime_type.substring(1);

        // Determine proper mime type and send response
        this.header('content-type', mime_types.contentType(mime_type) || 'text/plain');
        return this;
    }
This method is used to set the response content type header based on the provided mime type. Example: type('json')

@param {String} mime_type Mime type
@returns {Response} Response (Chainable)