StreamResponse

class OCP\AppFramework\Http\StreamResponse
Class StreamResponse
Source:lib/public/AppFramework/Http/StreamResponse.php#37
Parent:OCP\AppFramework\Http\Response
Implements:OCP\AppFramework\Http\ICallbackResponse

Properties

Methods

public OCP\AppFramework\Http\StreamResponse::__construct($filePath)
Source:

lib/public/AppFramework/Http/StreamResponse.php#45

Parameters:
  • $filePath (string | resource) the path to the file or a file handle which should be streamed
Since:

8.1.0

public OCP\AppFramework\Http\StreamResponse::callback($output)
Streams the file using readfile
Source:

lib/public/AppFramework/Http/StreamResponse.php#58

Parameters:
Since:

8.1.0