added appframework api files

This commit is contained in:
Bernhard Posselt
2013-01-26 16:31:08 +01:00
parent 47426f01b5
commit fe3a8d3910
32 changed files with 1196 additions and 6 deletions

View File

@@ -0,0 +1,40 @@
Response
========
Baseclass for responses.
Also used to just send headers
.. php:namespace:: OCA\AppFramework\Http
.. php:class:: Response
.. php:method:: __construct()
.. php:method:: addHeader($header)
:param string $header: header the string that will be used in the header() function
Adds a new header to the response that will be called before the renderfunction
.. php:method:: render()
:returns null:
By default renders no output
.. php:method:: getHeaders()
:returns array: the headers
Returns the set headers