[IPY]NWSGIが始まったようです

[IPY]NWSGIが始まったようです

  • Comments 1

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で呼び出します。

Leave a Comment
  • Please add 2 and 1 and type the answer here:
  • Post