Comments (4)
@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.
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.
🎅 👍
from genie.jl.
@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)
- Add a feature for declaring a custom static paths ("public/" alternatives) HOT 2
- integration with OpenAPI HOT 5
- Add "base_url" option, to "up()" to lop off referrer route path sent in from proxy servers (e.g. nginx)? HOT 7
- Loading Genie affects conversion of JSON3.Dict into Dict HOT 2
- Passing variables to `html` renderer yields key not found error HOT 4
- hot reload not possible once application hit the error, it require new bootstrap even in GENIE_ENV=dev HOT 4
- Genie.Logger.initialize_logging causes slow Arrow writes HOT 5
- Error reporting dumps sensitive information HOT 3
- Setting EARLYBIND "true" in Dockerfile causes port in use error HOT 3
- index-base transation missing. HOT 1
- Syntax error in first dashboard tutorial HOT 2
- [Bug] can't access own structure's properties in the reactive way HOT 11
- Typos in "your first dashboard" page in the website HOT 3
- Bug: Genie.Renderer.Html.html changes encoding when used with filepath HOT 2
- GC corrution in Genie[Session] HOT 1
- Applications compiled with Genie 5.23.x crashes (expected package `TimeZones [f269a46b]` to exist in the manifest) HOT 1
- Layout example does not work HOT 1
- Issues with the controller example from the docs HOT 4
- Multiple app modules no longer works HOT 6
- How to make the new Genie work behind nginx HOT 12
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 genie.jl.