summaryrefslogtreecommitdiffstats
path: root/lib/public/appframework/http/response.php
Commit message (Collapse)AuthorAgeFilesLines
* Add functions to modify cookies to response classLukas Reschke2014-11-271-5/+68
| | | | | | | | | | | | | | | | 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-1/+13
| | | | | | | | | | | | | | fix docstrings adjust copyright date another copyright date update another header update implement third headers argument, fix indention, fix docstrings fix docstrings
* adjust license headers to new mail addressBernhard Posselt2014-05-111-1/+1
|
* add cors middlewareBernhard Posselt2014-05-091-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | remove methodannotationreader namespace fix namespace for server container fix tests fail if with cors credentials header is set to true, implement a reusable preflighted cors method in the controller baseclass, make corsmiddleware private and register it for every request remove uneeded local in cors middleware registratio dont uppercase cors to easily use it from routes fix indention comment fixes explicitely set allow credentials header to false dont depend on better controllers PR, fix that stuff later split cors methods to be in a seperate controller for exposing apis remove protected definitions from apicontroller since controller has it
* Add @return PHPDocsThomas Tanghus2014-03-101-0/+4
|
* Chainable Response in AppFrameworkThomas Tanghus2014-03-091-0/+9
|
* polish documentation based on scrutinizer patchesJörn Friedrich Dreyer2014-02-061-1/+1
|
* AppFramework(Controller|HTTP|HTTP-Responses|Middleware), IContainer API fixesMorris Jobke2013-11-251-0/+4
|
* unify license headers for public API filesMorris Jobke2013-11-031-5/+4
|
* Fix namespace for OCP\Appframework\HttpThomas Tanghus2013-10-231-0/+1
| | | | | 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.
* Public API documentation fixesMorris Jobke2013-10-171-2/+12
| | | | | | | | | | | | | | | | refs #4883 * http/response.php * config.php * response.php * files.php * idbconnection.php * app.php * user.php * template.php * share.php * db.php * icache.php & il10n.php
* moving response classes over to OCPThomas Müller2013-08-211-0/+169