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
+10
View File
@@ -263,6 +263,16 @@ class Response implements ResponseInterface
return $this->__call__(__FUNCTION__, $name, $value);
}
/**
* @param array $headers
* @return ResponseInterface
*/
public function withHeaders(array $headers): ResponseInterface
{
return $this->__call__(__FUNCTION__, $headers);
}
/**
* Return an instance with the specified header appended with the given value.
*