summaryrefslogtreecommitdiffstats
path: root/lib/private/appframework/http
Commit message (Collapse)AuthorAgeFilesLines
* Only read php://input when parameters are requestedLukas Reschke2015-02-271-10/+29
| | | | | | Less invasive version of https://github.com/owncloud/core/pull/14574 for stable8 as requested at https://github.com/owncloud/core/issues/14283#issuecomment-76402295 Alarm: Major hack detected :see_no_evil:
* always set url parameters when they are available in the app dispatchBernhard Posselt2015-01-151-7/+15
| | | | | | prefer url parameters passed into the main method. If they are not present, use the containers urlParameters add space
* Add functions to modify cookies to response classLukas Reschke2014-11-271-3/+5
| | | | | | | | | | | | | | | | Currently there is no AppFramework way to modify cookies, which makes it unusable for quite some use-cases or results in untestable code. This PR adds some basic functionalities to add and invalidate cookies. Usage: ```php $response = new TemplateResponse(...); $response->addCookie('foo', 'bar'); $response->invalidateCookie('foo'); $response->addCookie('bar', 'foo', new \DateTime('2015-01-01 00:00')); ``` Existing cookies can be accessed with the AppFramework using `$this->request->getCookie($name)`.
* add dataresponseBernhard Posselt2014-10-291-2/+3
| | | | | | | | | | | | | | fix docstrings adjust copyright date another copyright date update another header update implement third headers argument, fix indention, fix docstrings fix docstrings
* Remove dead codeLukas Reschke2014-09-291-1/+0
|
* don't typecast null values inside dispatcher.phpGeorg Ehrke2014-06-291-1/+1
|
* fix indentionBernhard Posselt2014-06-111-6/+6
|
* handle http accept headers more gracefullyBernhard Posselt2014-06-111-18/+11
|
* make it possible to omit parameters and use the default parameters from the ↵Bernhard Posselt2014-05-131-2/+2
| | | | controller method
* Fix method signatureBernhard Posselt2014-05-111-0/+2
|
* adjust license headers to new mail addressBernhard Posselt2014-05-112-1/+3
|
* rename formatter to responder, formatResponse to buildResponseBernhard Posselt2014-05-111-1/+1
|
* fix broken ifBernhard Posselt2014-05-111-1/+1
|
* add test for not failing when adding more comments after type parameters, do ↵Bernhard Posselt2014-05-111-5/+2
| | | | not limit x-www-form-urlencoded to POST
* implement most of the basic stuff that was suggested in #8290Bernhard Posselt2014-05-111-3/+85
|
* make download and redirectresponse publicBernhard Posselt2014-04-202-107/+0
|
* default to GET request when no method is set to fix unittests, also set ↵Bernhard Posselt2014-04-121-0/+7
| | | | parsed json parameters on the post attribute
* Correctly process request parameters other than GET or POST, dont use ↵Bernhard Posselt2014-04-121-49/+31
| | | | globals in the class but inject it
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2014-02-191-2/+2
| | | | | | | | | | | This patch was automatically generated as part of the following inspection: https://scrutinizer-ci.com/g/owncloud/core/inspections/cdfecc4e-a37e-4233-8025-f0d7252a8720 Enabled analysis tools: - PHP Analyzer - JSHint - PHP Copy/Paste Detector - PHP PDepend
* polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-062-2/+2
|
* Fix namespace for OCP\Appframework\HttpThomas Tanghus2013-10-233-149/+3
| | | | | To avoid having to use OCP\Appframework\Http\Http in the public - and stable - API OCP\Appframework\Http is now both a class and a namespace.
* OCP\AppFramework\Controller\Controller => OCP\AppFramework\ControllerThomas Tanghus2013-10-111-1/+1
|
* fixing SecurityMiddleware to use OC6 APIThomas Müller2013-10-071-1/+1
|
* passesCSRFCheck added to OCP\IRequestBart Visscher2013-10-041-3/+35
|
* Fix fix of POST :PThomas Tanghus2013-10-031-10/+11
|
* Fix POST decodingThomas Tanghus2013-10-031-2/+2
|
* Modified PUT behaviourThomas Tanghus2013-10-021-26/+30
| | | | Now only non-parable PUT requests return a stream resource.
* Remove JSON request parsing from ServerThomas Tanghus2013-10-011-4/+1
|
* Implement PUT an PATCH supportThomas Tanghus2013-10-011-28/+73
|
* Check if accessor matched request method.Thomas Tanghus2013-10-011-0/+3
| | | | It's easier to find errors in the code if an exception is thrown.
* move the private namespace OC into lib/private - OCP will stay in lib/publicThomas Müller2013-09-305-0/+661
Conflicts: lib/private/vcategories.php