潘飞

潘飞的博客

他的个人主页  他的博客

记下WSGIApplication

潘飞  2009年10月31日 星期六 17:47 | 1953次浏览 | 0条评论

看了看GAE 开发环境里的这个类,记下来理解理解

  """Wraps a set of webapp RequestHandlers in a WSGI-compatible application.

  To use this class, pass a list of (URI regular expression, RequestHandler)
  pairs to the constructor, and pass the class instance to a WSGI handler.
  See the example in the module comments for details.

  The URL mapping is first-match based on the list ordering.
  """

看意思是说:对一些符合WSGI标准的请求处理句柄进行包装。要使用这个类,将一个列表的统一资源定位符,请求处理句柄的二元组传递到它的构造器中,然后将这个类实例传到一个WSGI处理句柄中。其中URL将按照顺序 找到第一个匹配的。

评论

我的评论:

发表评论

请 登录 后发表评论。还没有在Zeuux哲思注册吗?现在 注册 !

暂时没有评论

Zeuux © 2024

京ICP备05028076号