code: def end_headers(self):
          
          # Send them all at once
          for name, value in self._headers.items():
              self._handler.send_header(name, value)
  
          self._handler.end_headers()
docs: Ends the headers part