mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-01 14:20:16 +02:00
feat: add vendor http header to cached responses (#4040)
This commit is contained in:
@@ -331,7 +331,14 @@ final class Response
|
||||
return array_pop($header);
|
||||
}
|
||||
|
||||
public function withBody(string $body): Response
|
||||
public function withHeader(string $name, string $value): self
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->headers[$name] = [$value];
|
||||
return $clone;
|
||||
}
|
||||
|
||||
public function withBody(string $body): self
|
||||
{
|
||||
$clone = clone $this;
|
||||
$clone->body = $body;
|
||||
|
Reference in New Issue
Block a user