(self, request, encoding='utf-8', status=None)
initializes x; see x.__class__.__doc__ for signature
initializes x; see x.__class__.__doc__ for signature
initializes x ; see x . __class__ . __doc__ for signature
def __init__(self, request, encoding='utf-8', status=None):
        "initializes x; see x.__class__.__doc__ for signature"

        self.request = request
        self.encoding = encoding

        self._body = []
        self._status = HTTPStatus(status if status is not None else 200)

        self.time = time()

        self.headers = Headers()
        self.headers["Date"] = formatdate()

        if getattr(self.request.server, "display_banner", False):
            if self.request.server is not None:
                self.headers.add_header("Server", request.server.http.version)
            else:
                self.headers.add_header("X-Powered-By", SERVER_VERSION)

        self.cookie = self.request.cookie

        self.protocol = "HTTP/%d.%d" % self.request.protocol
def __init__ ( self , request , encoding = 'utf-8' , status = None ) : self . request = request self . encoding = encoding self . _body = [ ] self . _status = HTTPStatus ( status if status is not None else 200 ) self . time = time ( ) self . headers = Headers ( ) self . headers [ "Date" ] = formatdate ( ) if getattr ( self . request . server , "display_banner" , False ) : if self . request . server is not None : self . headers . add_header ( "Server" , request . server . http . version ) else : self . headers . add_header ( "X-Powered-By" , SERVER_VERSION ) self . cookie = self . request . cookie self . protocol = "HTTP/%d.%d" % self . request . protocol