diff --git a/src/HttpWorkerInterface.php b/src/HttpWorkerInterface.php index 3531765..798f27a 100644 --- a/src/HttpWorkerInterface.php +++ b/src/HttpWorkerInterface.php @@ -29,5 +29,5 @@ public function waitRequest(): ?Request; * message's headers. Each key MUST be a header name, and each value MUST be an array of strings for * that header. */ - public function respond(int $status, string|\Generator $body, array $headers = []): void; + public function respond(int $status, string|\Generator $body, array $headers = [], bool $endOfStream = true): void; }