Giter Site home page Giter Site logo

POST data about genie.jl HOT 4 CLOSED

genieframework avatar genieframework commented on May 16, 2024
POST data

from genie.jl.

Comments (4)

essenciary avatar essenciary commented on May 16, 2024

@tcopestake Thanks, that would be awesome 👍

Support for POST was the very next on my list (days away). I'm currently adding user authentication and POST is obviously a requirement. If you could contribute it, that would be excellent! Also, if you have already implemented file data support in your codebase and can easily port it over, that would be super.

I like the idea of Input.post / Input.get / Input.files / etc. Right now the GET params are passed into a params dict that's passed into the controller methods. If you can provide Input.post and Input.files I'm happy to unify the APIs by adding Input.get and maybe drop params completely.

Lazy processing the input can't hurt, although I can't see too many cases where we'd want to ignore what's being sent over the wire (maybe in the case of a DoS attack)?

from genie.jl.

EricForgy avatar EricForgy commented on May 16, 2024

I submitted a PR to URIParsers.jl ( JuliaWeb/URIParser.jl#32 ) to allow easy processing of POST requests. I use this together with Pages.jl. We can all compare notes :)

from genie.jl.

essenciary avatar essenciary commented on May 16, 2024

🎅 👍

from genie.jl.

essenciary avatar essenciary commented on May 16, 2024

@tcopestake
I've been successfully using Input.post in Genie for a while now - happy to say it works great!

However, I've stumbled into an issue: when POST-ing data, the spaces in the submitted data are replaced by "+". I can easily convert the "+" to " " in my POST processing function, but then the trouble is, it will also replace plus symbols inserted by the user.

It would be awesome if the library would be extended to output the user input as exactly submitted (preserving spaces and plus symbols).

from genie.jl.

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.