Welcome to MSDN Blogs Sign in | Join | Help
[IPY]NWSGIが始まったようです

IronPython向けのPEP-333(WSGI)を実装するプロジェクトが始まったようです。プロジェクトのTopページに書かれているサンプルを見ると非常に興味深いです。
以下にサンプルを引用します。

def application(environ, start_response):
    """Simplest possible application object"""
    status = '200 OK'
    response_headers = [('Content-type','text/plain')]
    start_response(status, response_headers)
    return ['Hello world!\n']

これで、http://仮想ディレクトリパス/スクリプト.pyで呼び出します。

Posted: Wednesday, November 14, 2007 12:18 PM by shozoa
Filed under: , ,

Comments

Leave a Comment

(required) 

(required) 

(optional)

(required) 

  
Enter Code Here: Required

Comment Notification

If you would like to receive an email when updates are made to this post, please register here

Subscribe to this post's comments using RSS

Page view tracker