StreamResponse
extends Response
in package
implements
ICallbackResponse
Class StreamResponse
Tags
Table of Contents
Interfaces
- ICallbackResponse
- Interface ICallbackResponse
Properties
- $filePath : string
Methods
- __construct() : mixed
- callback() : mixed
- Streams the file using readfile
Properties
$filePath
private
string
$filePath
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
callback()
Streams the file using readfile
public
callback(IOutput $output) : mixed
Parameters
- $output : IOutput
-
a small wrapper that handles output