def responseComplete(self): request = self.serverInterface().requestHandler() params = request.parameterMap() QgsMessageLog.logMessage("SimpleHelloFilter.responseComplete") if params.get('SERVICE', '').upper() == 'SIMPLE': request.clearHeaders() request.setHeader('Content-type', 'text/plain') request.clearBody() request.appendBody('Hello from SimpleServer!'.encode('utf-8'))
def responseComplete(self): request = self.serverInterface().requestHandler() params = request.parameterMap() QgsMessageLog.logMessage("SimpleHelloFilter.responseComplete") if params.get("SERVICE", "").upper() == "SIMPLE": request.clearHeaders() request.setHeader("Content-type", "text/plain") request.clearBody() request.appendBody("Hello from SimpleServer!".encode("utf-8"))