SeekableHttpStream

class OC\Files\Stream\SeekableHttpStream
A stream wrapper that uses http range requests to provide a seekable stream for http reading
Source:lib/private/Files/Stream/SeekableHttpStream.php#32
Implements:Icewind\Streams\File

Constants

PROTOCOL = httpseek
Source:lib/private/Files/Stream/SeekableHttpStream.php#33

Properties

public static property OC\Files\Stream\SeekableHttpStream::$context
Source:lib/private/Files/Stream/SeekableHttpStream.php#71
Type:resource

Methods

public static OC\Files\Stream\SeekableHttpStream::open($callback)
Open a readonly-seekable http stream
The provided callback will be called with byte range and should return an http stream for the requested range
Source:

lib/private/Files/Stream/SeekableHttpStream.php#59

Parameters:
  • $callback (callable)
Returns:

bool | resource

public OC\Files\Stream\SeekableHttpStream::stream_open($path, $mode, $options, &$opened_path)
Source:lib/private/Files/Stream/SeekableHttpStream.php#115
public OC\Files\Stream\SeekableHttpStream::stream_read($count)
Source:lib/private/Files/Stream/SeekableHttpStream.php#122
public OC\Files\Stream\SeekableHttpStream::stream_seek($offset, $whence=SEEK_SET)
Source:lib/private/Files/Stream/SeekableHttpStream.php#131
public OC\Files\Stream\SeekableHttpStream::stream_tell()
Source:lib/private/Files/Stream/SeekableHttpStream.php#149
public OC\Files\Stream\SeekableHttpStream::stream_stat()
Source:lib/private/Files/Stream/SeekableHttpStream.php#153
public OC\Files\Stream\SeekableHttpStream::stream_eof()
Source:lib/private/Files/Stream/SeekableHttpStream.php#161
public OC\Files\Stream\SeekableHttpStream::stream_close()
Source:lib/private/Files/Stream/SeekableHttpStream.php#169
public OC\Files\Stream\SeekableHttpStream::stream_write($data)
Source:lib/private/Files/Stream/SeekableHttpStream.php#175
public OC\Files\Stream\SeekableHttpStream::stream_set_option($option, $arg1, $arg2)
Source:lib/private/Files/Stream/SeekableHttpStream.php#179
public OC\Files\Stream\SeekableHttpStream::stream_truncate($size)
Source:lib/private/Files/Stream/SeekableHttpStream.php#183
public OC\Files\Stream\SeekableHttpStream::stream_lock($operation)
Source:lib/private/Files/Stream/SeekableHttpStream.php#187
public OC\Files\Stream\SeekableHttpStream::stream_flush()
Source:lib/private/Files/Stream/SeekableHttpStream.php#191