Nextcloud PHP API (master)

StreamResponse extends Response
in package
implements ICallbackResponse

Class StreamResponse

Tags
since
8.1.0
template

S of int

template

H of array<string, mixed>

template-extends

Response<int, array<string, mixed>>

Table of Contents

Interfaces

ICallbackResponse
Interface ICallbackResponse

Properties

$filePath  : string

Methods

__construct()  : mixed
callback()  : mixed
Streams the file using readfile

Properties

Methods

__construct()

public __construct(string|resource $filePath[, S $status = Http::STATUS_OK ][, H $headers = [] ]) : mixed
Parameters
$filePath : string|resource

the path to the file or a file handle which should be streamed

$status : S = Http::STATUS_OK
$headers : H = []
Tags
since
8.1.0

callback()

Streams the file using readfile

public callback(IOutput $output) : mixed
Parameters
$output : IOutput

a small wrapper that handles output

Tags
since
8.1.0

        
On this page

Search results