code: def set(self, header, value=None):
          
          if value is None:
              for k, v in header.items():
                  self.headers[k] = v
          else:
              self.headers[header] = value
docs: Set header to the value