Skip to content

Improved docs and UX

Latest

Choose a tag to compare

@nmattia nmattia released this 15 Feb 15:30
· 1 commit to main since this release

This is a quality of life release, which includes better documentation and better defaults (.run() now defaults to 0.0.0.0:80).

Install with mip:

mpremote mip install logging
mpremote mip install "https://github.com/nmattia/uht/releases/latest/download/uht.py"

Start a server:

from uht import HTTPServer

app = HTTPServer()

@app.route("/")
async def index(req, resp):
    await resp.send(b"Hello, world!")

app.run()  # Starts the server on 127.0.0.1:80

For more information see project README.

Full Changelog: v0.0.1...v0.0.2