Feature #74532
closedSupport PUT, PATCH and DELETE requests in PSR-7 API
100%
Description
The PSR-7 compliant API (ServerRequestFactory and friends) currently relies on GeneralUtility for decoding a request, which in turn uses PHP’s internal support for decoding a request body. This, however, only works for POST requests, which is also why the methods are named GeneralUtility::_POST etc.
To support more modern server APIs, we should at least include support for PUT, PATCH and friends in the new API, which will eventually replace the static methods in GeneralUtility one day.
Files
Updated by Gerrit Code Review over 8 years ago
- Status changed from Accepted to Under Review
Patch set 1 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47161
Updated by Andreas Wolf over 8 years ago
- File put_test.zip put_test.zip added
How to test:
- extract and install the attached test extension
- create a new site in your installation with a TypoScript root template that includes the static template from the extension
- fire requests to the page:
- curl -X POST "http://my.dev.machine/index.php?id=123" --data-urlencode "foo=bar"
- curl -X PUT "http://my.dev.machine/index.php?id=123" --data-urlencode "foo=bar"
- curl -X DELETE "http://my.dev.machine/index.php?id=123" --data-urlencode "foo=bar"
Updated by Gerrit Code Review about 8 years ago
Patch set 2 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47161
Updated by Gerrit Code Review about 8 years ago
Patch set 3 for branch master of project Packages/TYPO3.CMS has been pushed to the review server.
It is available at https://review.typo3.org/47161
Updated by Andreas Wolf about 8 years ago
- Status changed from Under Review to Resolved
- % Done changed from 0 to 100
Applied in changeset 1205dd02abf19ffe72cf05d4bed8f9ddd75478df.