nextcloud/tests/lib/appframework/http
Bernhard Posselt 95239ad21e AppFramework StreamResponse
First stab at the StreamResponse, see #12988

The idea is to use an interface ICallbackResponse (I'm not 100% happy with the name yet, suggestions?) that allow the response to output things in its own way, for instance stream the file using readfile

Unittests are atm lacking, plan is to

check if a mock of ICallbackResponse will be used by calling its callback (also unhappy with this name) method
Usage is:

$response = new StreamResponse('path/to/file');

rename io to output, add additional methods and handle error and not modified cases when using StreamResponse

fix indention and uppercasing, also handle forbidden cases

fix indention

fix indention

no forbidden, figuring out if a file is really readable is too complicated to get to work across OSes and streams

remove useless import

remove useless import

fix intendation
2015-02-27 15:42:33 +01:00
..
ContentSecurityPolicyTest.php Rename to allowEval 2015-02-16 12:30:21 +01:00
DataResponseTest.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
DispatcherTest.php Refactor OC_Request into TrustedDomainHelper and IRequest 2015-02-16 22:13:00 +01:00
DownloadResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
HttpTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
JSONResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
OCSResponseTest.php add a controller and reponse for ocs 2015-02-05 14:02:17 +01:00
RedirectResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
RequestTest.php Get the real protocol behind several proxies 2015-02-24 12:24:55 +01:00
ResponseTest.php Allow AppFramework applications to specify a custom CSP header 2015-02-16 11:00:41 +01:00
StreamResponseTest.php AppFramework StreamResponse 2015-02-27 15:42:33 +01:00
TemplateResponseTest.php Make remaining files extend the test base 2014-11-19 14:53:59 +01:00
requeststream.php Implement PUT an PATCH support 2013-10-01 20:13:13 +02:00