19declare(strict_types=1);
42 $this->
http->saveResponse($this->
http->response()->withBody(
45 $this->
http->sendResponse();
52 string $mime =
"application/octet-stream"
59 $delivery->setSendMimeType(
true);
61 $delivery->setDownloadFileName(
$filename);
62 $delivery->setConvertFileNameToAsci(
true);
64 $this->
http->saveResponse($repsonse);
71 string $mime =
"application/octet-stream"
78 $delivery->setSendMimeType(
true);
80 $delivery->setDownloadFileName(
$filename);
81 $delivery->setConvertFileNameToAsci(
true);
82 $repsonse = $this->
http->response()->withBody($stream);
83 $this->
http->saveResponse($repsonse);
setMimeType(string $mime_type)
Stream factory which enables the user to create streams without the knowledge of the concrete class.
static ofString(string $string)
Creates a new stream with an initial value.
deliverString(string $data, string $filename, string $mime="application/octet-stream")
sendString(string $output)
deliverStream(FileStream $stream, string $filename, string $mime="application/octet-stream")
__construct(HTTP\Services $http)
The base interface for all filesystem streams.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...