示例#1
0
 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'))
示例#2
0
 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'))
示例#3
0
 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"))