Nextcloud PHP API (master)

TextPlainResponse extends Response
in package

A renderer for text responses

Tags
since
22.0.0
template

S of int

template

H of array<string, mixed>

template-extends

Response<int, array<string, mixed>>

Table of Contents

Properties

$text  : string

Methods

__construct()  : mixed
constructor of TextPlainResponse
render()  : string
Returns the text

Properties

Methods

__construct()

constructor of TextPlainResponse

public __construct([string $text = '' ][, S $statusCode = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
$text : string = ''

The text body

$statusCode : S = Http::STATUS_OK

the Http status code, defaults to 200

$headers : H = []
Tags
since
22.0.0

render()

Returns the text

public render() : string
Tags
since
22.0.0
throws
Exception

If data could not get encoded

Return values
string

        
On this page

Search results