def do_POST(self): """Serve a POST request.""" cpg.request.method = "POST" _cphttptools.doRequest( self.client_address[0], self.address_string(), self.raw_requestline, self.headers, self.rfile, self.wfile ) self.connection = self.request
def do_HEAD(self): # Head is not implemented """Serve a HEAD request.""" cpg.request.method = "HEAD" _cphttptools.doRequest( self.client_address[0], self.address_string(), self.raw_requestline, self.headers, self.rfile, self.wfile )
def do_GET(self): """Serve a GET request.""" cpg.request.method = "GET" _cphttptools.doRequest( self.client_address[0], self.address_string(), self.raw_requestline, self.headers, self.rfile, self.wfile )