This commit is contained in:
2023-04-19 23:51:39 +08:00
parent 994e6e7301
commit c12606d233
3 changed files with 26 additions and 6 deletions
+11
View File
@@ -251,6 +251,17 @@ class Message extends Component implements MessageInterface
return $this;
}
/**
* @param array $headers
* @return $this
*/
public function withHeaders(array $headers): static
{
$this->headers = $headers;
return $this;
}
/**
* Return an instance with the specified header appended with the given value.
*