摘要:
http://webapp-improved.appspot.com/guide/request.htmlRequest dataThe request handler instance can access the request data using itsrequestproperty. This is initialized to a populatedWebObRequestobject by the application.The request object provides aget()method that returns values for arguments parse 阅读全文
摘要:
Request handlersIn the webapp2 vocabulary,request handleror simplyhandleris a common term that refers to the callable that contains the application logic to handle a request. This sounds a lot abstract, but we will explain everything in details in this section.Handlers 101A handler is equivalent to 阅读全文
摘要:
http://webapp-improved.appspot.com/guide/testing.htmlURI routingURI routingis the process of taking the requested URI and deciding which application handler will handle the current request. For this, we initialize theWSGIApplicationdefining a list ofroutes: eachrouteanalyses the current request and, 阅读全文