We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 837bd3e commit dfc4aabCopy full SHA for dfc4aab
1 file changed
src/HttpWorkerInterface.php
@@ -28,6 +28,8 @@ public function waitRequest(): ?Request;
28
* @param HeadersList|array<array-key, array<array-key, string>> $headers $headers An associative array of the
29
* message's headers. Each key MUST be a header name, and each value MUST be an array of strings for
30
* that header.
31
+ * @param bool $endOfStream End of stream.
32
+ * The {@see true} value means the Payload block is last in the stream.
33
*/
- public function respond(int $status, string|\Generator $body, array $headers = []): void;
34
+ public function respond(int $status, string|\Generator $body, array $headers = [], bool $endOfStream = true): void;
35
}
0 commit comments