High performance Curio based HTTP server with Jinja2 templates support.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
curio_http_server Reorganize files. Dec 13, 2018
examples Added shebangs to examples. Dec 13, 2018
.gitignore Initial version. Nov 27, 2018
LICENSE Initial version. Nov 27, 2018
README.md Create README.md Dec 13, 2018
setup.cfg Initial version. Nov 27, 2018
setup.py Version increased. Dec 13, 2018

README.md

Curio HTTP Server

Curio based HTTP server with Jinja2 templates support.

Simplest usage looks like this

from curio import run
from curio_http_server.core.router import Router
from curio_http_server.core.server11 import Server11

async def hello(request, response):
    await response.send_text('Hello!')

router = Router()
router.add('/', hello, 'GET')
server = Server11(router)

run(server.run(port=8080), with_monitor=True)

See examples for advanced examples, including streaming responses, HTML forms, jinja templates and more.

See Wiki for additional information.