ZeroIntensity / view.py

The Batteries-Detachable Web Framework
https://view.zintensity.dev
MIT License
206 stars 15 forks source link

Request Data #129

Closed ZeroIntensity closed 5 months ago

ZeroIntensity commented 5 months ago

This closes #95.

Note that this syntax is not implemented, and is to be done in a future issue:

from view import new_app, headers

app = new_app

@app.get("/")
@headers()
async def index(hdrs: dict[str, str]):
    return hdrs["user-agent"]

app.run()

See the changelog for more info.

netlify[bot] commented 5 months ago

Deploy Preview for viewpy ready!

Name Link
Latest commit 4ead94936ea06d3410b8abcb34b643e01d2e7304
Latest deploy log https://app.netlify.com/sites/viewpy/deploys/65b004cac1ec37000874baae
Deploy Preview https://deploy-preview-129--viewpy.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.