def content_type
    return nil unless main_type()
    if sub_type()
    then "#{main_type()}/#{sub_type()}"
    else main_type()
    end
  end
Returns a content type string such as "text/html".
This method returns nil if Content-Type: header field does not exist.