Exemple #1
0
 def processRequest(self,
                    Method=None,
                    RequestURI=None,
                    HTTPVersion=None,
                    Headers=None,
                    fragment=None,
                    netloc=None,
                    query=None,
                    path=None,
                    scheme=None):
     yield http.ok()
     yield http.noheaders()
     yield 'Echo ' + RequestURI
     done.append(True)
Exemple #2
0
 def processRequest(this, **kwargs):
     yield http.ok()
     yield http.noheaders()
     yield 'Bye'
Exemple #3
0
 def handle(self):
     yield http.ok()
     yield http.noheaders()
     yield 'this was the GET handler'
Exemple #4
0
 def handle(this, ContentLength):
     body = yield http.readRe('(?P<BODY>.*)', ContentLength)
     self.assertEquals('XXYYZZ', body['BODY'])
     yield http.ok()
     yield http.noheaders()
     yield 'this was the post handler'
 def processRequest(this, **kwargs):
     yield http.ok()
     yield http.noheaders()
     yield 'Bye'
 def handle(self):
     yield http.ok()
     yield http.noheaders()
     yield 'this was the GET handler'
 def handle(this, ContentLength):
     body = yield http.readRe('(?P<BODY>.*)', ContentLength)
     self.assertEquals('XXYYZZ', body['BODY'])
     yield http.ok()
     yield http.noheaders()
     yield 'this was the post handler'
 def processRequest(self, Method=None, RequestURI=None, HTTPVersion=None, Headers=None, fragment=None, netloc=None, query=None, path=None, scheme=None):
     yield http.ok()
     yield http.noheaders()
     yield 'Echo ' + RequestURI
     done.append(True)