SandBox

Skip to end of metadata
Go to start of metadata

__call__

footnote test [1]

must not
〜を してはならない

1
2
3
4
class AppClass:
    def __init__(self, environ, start_response):
        self.environ = environ
        self.start = start_response


This document specifies a proposed standard interface between web servers and Python web applications or frameworks, to promote web application portability across a variety of web servers.

この文書は、Web サーバーと Python Web アプリケーションあるいは Web フレームワークの間の標準インターフェース案を示したものである。この提案は、様々な Web サーバー間の Web アプリケーションの移植性を促進する。

しかしながら、いくつかの状況では、サーバまたはゲートウェイが Content-Length ヘッダーを生成するか、または少なくともクライアント接続を閉じる必要性を避けることができるかもしれない。アプリケーションが write() callable を呼び出して いなくて、iterable を返し、その len() が 1 である場合、サーバは、iterable によって yield された最初の文字列の長さを取得しながら自動的に Content-Length を決定することができる。

PEP 325


[1] The Python Wiki "Web Programming" topic
(http://www.python.org/cgi-bin/moinmoin/WebProgramming)

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.