protocolVersion; } public function setProtocolVersion(string $protocolVersion): void { $this->protocolVersion = $protocolVersion; } /** * @todo: This only exists for extbase b/w compat, see extbase bootstrap: In general, plugin like extbase * should always *throw* PropagateResponseException to *stop rendering* in case of 3xx or 4xx. * We should *break* this part in TYPO3 v15 by removing the handling from extbase bootstrap, and * *communicate* that content elements which create non-200 should *throw*. PropagateResponseException * should then be made non-internal. */ public function getStatusCode(): int { return $this->statusCode; } public function setStatusCode(int $statusCode): void { $this->statusCode = $statusCode; } /** * @todo: Follows getStatusCode(), should be adapted as well. */ public function getReasonPhrase(): string { return $this->reasonPhrase; } public function setReasonPhrase(string $reasonPhrase): void { $this->reasonPhrase = $reasonPhrase; } public function getHeaders(): array { return $this->headers; } public function setHeader(string $name, $value): void { $this->headers[$name] = $value; } }