src/Controller/Output.php
public function partialContent($rangeFrom, $rangeTo, $totalSize)
    {
        $this->respondWith(206);
        
        $this->setResponseHeader('Content-Range', "bytes {$rangeFrom}-{$rangeTo}/{$totalSize}");
        $this->setResponseHeader('Content-Length', $rangeTo - $rangeFrom);
    }
public function partialContent($rangeFrom, $rangeTo, $totalSize)
    {
        $this->respondWith(206);
        
        $this->setResponseHeader('Content-Range', "bytes {$rangeFrom}-{$rangeTo}/{$totalSize}");
        $this->setResponseHeader('Content-Length', $rangeTo - $rangeFrom);
    }
public function partialContent ( $ rangeFrom , $ rangeTo , $ totalSize ) { $ this -> respondWith ( 206 ) ; $ this -> setResponseHeader ( 'Content-Range' , "bytes {$rangeFrom}-{$rangeTo}/{$totalSize}" ) ; $ this -> setResponseHeader ( 'Content-Length' , $ rangeTo - $ rangeFrom ) ; }
Respond with a 206 Partial content with `Content-Range` header

@param int $rangeFrom  Beginning of the range in bytes
@param int $rangeTo    End of the range in bytes
@param int $totalSize  Total size in bytes
Respond with a 206 Partial content with Content - Range header