nggit / tremolo

Tremolo is a stream-oriented, asynchronous, programmable HTTP server written in pure Python. It can also serve as an ASGI server.
https://nggit.github.io/tremolo-docs/
MIT License
44 stars 1 forks source link

unify request.ctx and request.params #140

Closed nggit closed 3 weeks ago

nggit commented 3 weeks ago

So now request.params['url'] and friends are also accessible with request.params.url, etc.

The downside is that it can now conflict with user-defined contexts. But on the other hand, I'm not keen on creating separate objects either.. So it should be documented for users to choose context names wisely.

sonarcloud[bot] commented 3 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
100.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud