Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/google-app-engine/4.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Google app engine 谷歌appengine多处理器_Google App Engine_Httphandler - Fatal编程技术网

Google app engine 谷歌appengine多处理器

Google app engine 谷歌appengine多处理器,google-app-engine,httphandler,Google App Engine,Httphandler,有没有一种方法可以创建一个处理所有未指定URL的google应用程序引擎处理程序 也许像: app = webapp2.WSGIApplication([ ('/', MainHandler), ('/hello',HelloHandler), ('/bye',ByeHandler), ('for-everything-else',OtherHandler) ], debug=True) 好吧,我自己找到了答案: app = webapp2.WSGIAppli

有没有一种方法可以创建一个处理所有未指定URL的google应用程序引擎处理程序

也许像:

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    ('/hello',HelloHandler),
    ('/bye',ByeHandler),
    ('for-everything-else',OtherHandler)
], debug=True) 

好吧,我自己找到了答案:

app = webapp2.WSGIApplication([
    ('/', MainHandler),
    ('/hello',HelloHandler),
    ('/bye',ByeHandler),    
    ('/.*',OtherHandler)
], debug=True)

现在请不要发表评论,告诉我“对于其他一切”不能是url如果这个词正确的话,“为其他一切”只是一个存根