19 declare(strict_types=1);
    39         if (is_string($response)) {
    41         } elseif (is_resource($response)) {
    45         $this->
http->saveResponse(
    46             $this->
http->response()->withBody($response)
    48         $this->
http->sendResponse();
 
sendAsync(mixed $response)
 
static ofResource($resource)
Wraps an already created resource with the stream abstraction. 
 
static http()
Fetches the global http state from ILIAS. 
 
static ofString(string $string)
Creates a new stream with an initial value. 
 
__construct(private readonly HttpService $http,)