mirror of
https://github.com/nextcloud/documentation.git
synced 2026-01-03 02:09:45 +07:00
28 lines
442 B
ReStructuredText
28 lines
442 B
ReStructuredText
TextResponse
|
|
============
|
|
|
|
|
|
Prompts the user to download the a textfile
|
|
|
|
|
|
.. php:namespace:: OCA\AppFramework\Http
|
|
.. php:class:: TextResponse
|
|
|
|
|
|
|
|
|
|
.. php:method:: __construct($content)
|
|
|
|
:param string $content: the content that should be written into the file
|
|
|
|
|
|
Creates a response that just outputs text
|
|
|
|
|
|
.. php:method:: render()
|
|
|
|
:returns string: the file contents
|
|
|
|
|
|
Simply sets the headers and returns the file contents
|