Comments (12)
No, It's not gonna be used for routing. It just allows us to use query strings with their names within the action.
from nanohttp.
Also, It can be accessed from the context as a legacy method.
from nanohttp.
This change should totally compatible with the old versions. don't worry about the compatibility.
from nanohttp.
from nanohttp.
cool, but why? arguments is just using for dispatch dynamic resources, why we need to mix that with query strings?
from nanohttp.
Because python allows us to separate the kwargs and kwargsonly
paramteres,
All parameters after the *
would be filled by query strings.
With this, we can cover all part of the urls with python's method signature. this is so semantic.
from nanohttp.
This is not a mix, the star *
character is a separator to prevent mixing url parameters and query strings.
from nanohttp.
query string is not part of routing, context
is best place for that.
from nanohttp.
And it's optional to use *
in your action signature.
from nanohttp.
@memlucky71 @mehrdad1373pedramfar @mahdi13
from nanohttp.
Any risk?
from nanohttp.
https://www.python.org/dev/peps/pep-0457/
from nanohttp.
Related Issues (20)
- 100% Code Coverage
- Incompatible dependencies HOT 1
- Use exc_info parameter of the start_response
- HTTPFound
- Raise when form field name is unknown.
- Add -o flag as same as the easyq cli
- Migrate to bddrest, Re-write all tests
- Bug in dispatcher HOT 1
- Invalid keyword argument for `start_response` HOT 3
- Unused parts HOT 2
- Empty request body when using prevent_form decorator HOT 6
- Server Halt: prevent_form and RestController
- `begin_response` hook are not called on `handle_exception` HOT 2
- Missed response headers on HTTPNoContent HOT 1
- Dump None type on JSON decorator HOT 1
- Bad request raise when nothing implemented HOT 1
- Application lifecycle conflicts on exception handling
- No query string values in context.form without form parameter HOT 1
- Code execution when loading the configuration HOT 1
- Cannot use python keywords as the HTTP verb
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nanohttp.