code: def _can_parse(self, content_type):
          '''Whether this navigator can parse the given content-type.
          Checks that the content_type matches one of the types specified
          in the 'Accept' header of the request, if supplied.
          If not supplied, matches against the default'''
          content_type, content_subtype, content_param = utils.parse_media_type(content_type)
          for accepted in self.headers.get('Accept', self.DEFAULT_CONTENT_TYPE).split(','):
              type, subtype, param = utils.parse_media_type(accepted)
              # if either accepted_type or content_type do not
              # contain a parameter section, then it will be
              # optimistically ignored
              matched = (type == content_type) \
                        and (subtype == content_subtype) \
                        and (param == content_param or not (param and content_param))
              if matched:
                  return True
          return Falsf _can_parse(self, content_type):
          '''Whether this navigator can parse the given content-type.
          Checks that the content_type matches one of the types specified
          in the 'Accept' header of the request, if supplied.
          If not supplied, matches against the default'''
          content_type, content_subtype, content_param = utils.parse_media_type(content_type)
          for accepted in self.headers.get('Accept', self.DEFAULT_CONTENT_TYPE).split(','):
              type, subtype, param = utils.parse_media_type(accepted)
              # if either accepted_type or content_type do not
              # contain a parameter section, then it will be
              # optimistically ignored
              matched = (type == content_type) \
                        and (subtype == content_subtype) \
                        and (param == content_param or not (param and content_param))
              if matched:
                  return True
          return False
docs: Whether this navigator can parse the given content-type.
          Checks that the content_type matches one of the types specified
          in the 'Accept' header of the request, if supplied.
          If not supplied, matches against the default