Esempio n. 1
0
    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
Esempio n. 2
0
 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
     )
Esempio n. 3
0
 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
     )