19declare(strict_types=1);
30 private readonly HttpService
$http,
45 $this->
http->saveResponse(
46 $this->
http->response()->withBody($response)
48 $this->
http->sendResponse();
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.
static ofResource($resource)
Wraps an already created resource with the stream abstraction.
sendAsync(mixed $response)
__construct(private readonly HttpService $http,)
static http()
Fetches the global http state from ILIAS.