改名
This commit is contained in:
@@ -99,30 +99,30 @@ class Response implements ResponseInterface, \Server\ResponseInterface
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param string|null $value
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function withAccessControlAllowHeaders(string $value): static
|
public function withAccessControlAllowHeaders(?string $value): static
|
||||||
{
|
{
|
||||||
return $this->withHeader('Access-Control-Allow-Headers', $value);
|
return $this->withHeader('Access-Control-Allow-Headers', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param string|null $value
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function withAccessControlRequestMethod(string $value): static
|
public function withAccessControlRequestMethod(?string $value): static
|
||||||
{
|
{
|
||||||
return $this->withHeader('Access-Control-Request-Method', $value);
|
return $this->withHeader('Access-Control-Request-Method', $value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param string|null $value
|
||||||
* @return Response
|
* @return Response
|
||||||
*/
|
*/
|
||||||
public function withAccessControlAllowOrigin(string $value): static
|
public function withAccessControlAllowOrigin(?string $value): static
|
||||||
{
|
{
|
||||||
return $this->withHeader('Access-Control-Allow-Origin', $value);
|
return $this->withHeader('Access-Control-Allow-Origin', $value);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -69,24 +69,24 @@ interface ResponseInterface extends \Psr\Http\Message\ResponseInterface
|
|||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param ?string $value
|
||||||
* @return ResponseInterface
|
* @return ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function withAccessControlAllowOrigin(string $value): ResponseInterface;
|
public function withAccessControlAllowOrigin(?string $value): ResponseInterface;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param ?string $value
|
||||||
* @return ResponseInterface
|
* @return ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function withAccessControlRequestMethod(string $value): ResponseInterface;
|
public function withAccessControlRequestMethod(?string $value): ResponseInterface;
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @param string $value
|
* @param ?string $value
|
||||||
* @return ResponseInterface
|
* @return ResponseInterface
|
||||||
*/
|
*/
|
||||||
public function withAccessControlAllowHeaders(string $value): ResponseInterface;
|
public function withAccessControlAllowHeaders(?string $value): ResponseInterface;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user