mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-04 02:36:49 +07:00
added appframework api files
This commit is contained in:
40
developer_manual/classes/appframework/http_response.rst
Normal file
40
developer_manual/classes/appframework/http_response.rst
Normal 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
|
||||
Reference in New Issue
Block a user