19 declare(strict_types=1);
    39             Disposition::ATTACHMENT,
    46     public function inline(
    64         ?
string $download_file_name = null,
    65         ?
string $mime_type = null,
    66         ?
bool $delete_file = 
false    69             $this->
http->response(),
    71             $mime_type ?? mime_content_type($path_to_file),
    72             $download_file_name ?? basename($path_to_file),
    75         $r = $this->response_builder->buildForStream(
    76             $this->
http->request(),
    80         $this - $this->
saveAndClose($r, $delete_file ? $path_to_file : null);
 setGeneralHeaders(ResponseInterface $r, string $uri, string $mime_type, string $file_name, Disposition $disposition=Disposition::INLINE)
 
attached(string $path_to_file, ?string $download_file_name=null, ?string $mime_type=null, ?bool $delete_file=false)
 
deliver(string $path_to_file, Disposition $disposition, ?string $download_file_name=null, ?string $mime_type=null, ?bool $delete_file=false)
 
static ofResource($resource)
Wraps an already created resource with the stream abstraction. 
 
static http()
Fetches the global http state from ILIAS. 
 
saveAndClose(ResponseInterface $r, string $path_to_delete=null)
 
string $download_file_name