nextcloud/lib/public/appframework/http
Lukas Reschke 048139074d Add functions to modify cookies to response class
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)`.
2014-11-27 14:19:00 +01:00
..
dataresponse.php add dataresponse 2014-10-29 09:43:47 +01:00
downloadresponse.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
jsonresponse.php fix typo in content type 2014-11-05 12:04:56 +01:00
redirectresponse.php adjust license headers to new mail address 2014-05-11 17:54:08 +02:00
response.php Add functions to modify cookies to response class 2014-11-27 14:19:00 +01:00
templateresponse.php Fix template rendering for 'blank' templates 2014-07-29 16:49:50 +02:00