code: def accept(self, value):
          
          if value in list(defines.Content_types.values()):
              option = Option()
              option.number = defines.OptionRegistry.ACCEPT.number
              option.value = value
              self.add_option(option)
docs: Add an Accept option to a request.
  
          :param value: the Accept value