code: def payload(self, p):
          
          if isinstance(p, tuple):
              k = p[0]
              v = p[1]
              self.actual_content_type = k
              self._payload[k] = v
          else:
              self._payload = {defines.Content_types["text/plain"]: p}
docs: Set the payload of the resource.
  
          :param p: the new payload