Did I find the right examples for you? yes no

All Samples(2)  |  Call(2)  |  Derive(0)  |  Import(0)

src/k/h/khakilet-0.2/khakilet/web.py   khakilet(Download)
            response.set_header('Content-Type', 'text/html; encoding={}'
                    .format(self.default_encoding))
            response.send_body(self.render('error',
                code=e.code, status=e.status, **e.info))
        else:
            if isinstance(result, str):
                result = result.encode(self.default_encoding)
            response.send_body(result)