ice.py
def response(self):
        """Return the HTTP response body.

        Returns:
          bytes: HTTP response body as a sequence of bytes
        """
        if isinstance(self.body, bytes):
            out = self.body
        elif isinstance(self.body, str):
            out = self.body.encode(self.charset)
        else:
            out = b''
        self.add_header('Content-Type', self.content_type)
        self.add_header('Content-Length', str(len(out)))

        self.start(self.status_line, self._headers)
        return [out]
def response(self):
        """Return the HTTP response body.

        Returns:
          bytes: HTTP response body as a sequence of bytes
        """
        if isinstance(self.body, bytes):
            out = self.body
        elif isinstance(self.body, str):
            out = self.body.encode(self.charset)
        else:
            out = b''
        self.add_header('Content-Type', self.content_type)
        self.add_header('Content-Length', str(len(out)))

        self.start(self.status_line, self._headers)
        return [out]
def response ( self ) : if isinstance ( self . body , bytes ) : out = self . body elif isinstance ( self . body , str ) : out = self . body . encode ( self . charset ) else : out = b'' self . add_header ( 'Content-Type' , self . content_type ) self . add_header ( 'Content-Length' , str ( len ( out ) ) ) self . start ( self . status_line , self . _headers ) return [ out ]
Return the HTTP response body.

        Returns:
          bytes: HTTP response body as a sequence of bytes
Return the HTTP response body .