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)
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'