GithubHelp home page GithubHelp logo

Comments (12)

pylover avatar pylover commented on August 16, 2024 1

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.

pylover avatar pylover commented on August 16, 2024 1

Also, It can be accessed from the context as a legacy method.

from nanohttp.

pylover avatar pylover commented on August 16, 2024 1

This change should totally compatible with the old versions. don't worry about the compatibility.

from nanohttp.

pylover avatar pylover commented on August 16, 2024 1

4c640cc

from nanohttp.

meyt avatar meyt commented on August 16, 2024

cool, but why? arguments is just using for dispatch dynamic resources, why we need to mix that with query strings?

from nanohttp.

pylover avatar pylover commented on August 16, 2024

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.

pylover avatar pylover commented on August 16, 2024

This is not a mix, the star * character is a separator to prevent mixing url parameters and query strings.

from nanohttp.

meyt avatar meyt commented on August 16, 2024

query string is not part of routing, context is best place for that.

from nanohttp.

pylover avatar pylover commented on August 16, 2024

And it's optional to use * in your action signature.

from nanohttp.

pylover avatar pylover commented on August 16, 2024

@memlucky71 @mehrdad1373pedramfar @mahdi13

from nanohttp.

pylover avatar pylover commented on August 16, 2024

Any risk?

from nanohttp.

pylover avatar pylover commented on August 16, 2024

https://www.python.org/dev/peps/pep-0457/

from nanohttp.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.