Files
nextcloud-docs/developer_manual/classes/appframework/http_response.rst
2013-01-26 16:31:08 +01:00

41 lines
575 B
ReStructuredText

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