Comments (4)
The difference between the current Payload
and this proposal is this save the parsed body as queryParams in GET requests?
I think it is not a good idea.
from psr7-middlewares.
Maybe you're right) Can I transform it with Payload
?
from psr7-middlewares.
I don't want to save the parsedBody as queryParams, because they are different things. But I'm open to allow to parse the body in GET requests and save it as parsedBody, because it's allowed:
http://stackoverflow.com/questions/978061/http-get-with-request-body
What do you thing about this?:
$payload = Middleware::payload()
->methods(['GET', 'POST', 'PUT'])
In other words: allow to customize the methods in which you want to parse the payload (by default the current allowed).
from psr7-middlewares.
Ok) Let's forget about:
if ($method == 'GET') {
$request = $request->withQueryParams($json);
from psr7-middlewares.
Related Issues (20)
- Error handler middleware assumes stream immutability HOT 1
- Does this project follow semver? HOT 2
- HTTPS terminated at load balancer HOT 9
- Custom Middleware HOT 2
- Closed
- Expose Middleware HOT 2
- JSON Schema incompatible with Slim Framework HOT 5
- Defective unit tests not marked as risky. HOT 1
- Csrf middleware is not fully PHP 5 compatible HOT 5
- Slim v3 and DigestAuth middleware is endlessly looping the password dialog. HOT 3
- Question about Cache Middleware HOT 3
- AuraRouter curl stuck at 404 not found. HOT 3
- Adding extra slashes after domain name in url allows you to bypass JWT Authentication
- MiddlewareInterface HOT 2
- https middleware HOT 10
- BlockSpam default path to spammers.txt is wrong HOT 1
- FormatNegotiator - hard coded priorities? HOT 4
- apply http-interop/http-middleware compatibiity HOT 6
- Firewall middleware needs ClientIp executed before HOT 7
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 psr7-middlewares.