改名
This commit is contained in:
@@ -405,4 +405,31 @@ class Request implements RequestInterface
|
|||||||
{
|
{
|
||||||
return $this->__call__()->{__FUNCTION__}();
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getAccessControlAllowOrigin(): ?string
|
||||||
|
{
|
||||||
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getAccessControlAllowHeaders(): ?string
|
||||||
|
{
|
||||||
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getAccessControlRequestMethod(): ?string
|
||||||
|
{
|
||||||
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,6 +5,7 @@ namespace Server\Constrict;
|
|||||||
|
|
||||||
|
|
||||||
use Http\Context\Context;
|
use Http\Context\Context;
|
||||||
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Psr\Http\Message\StreamInterface;
|
use Psr\Http\Message\StreamInterface;
|
||||||
use Server\Message\Response as Psr7Response;
|
use Server\Message\Response as Psr7Response;
|
||||||
use Server\ResponseInterface;
|
use Server\ResponseInterface;
|
||||||
@@ -279,4 +280,31 @@ class Response implements ResponseInterface
|
|||||||
{
|
{
|
||||||
return $this->__call__()->{__FUNCTION__}($value);
|
return $this->__call__()->{__FUNCTION__}($value);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getAccessControlAllowOrigin(): ?string
|
||||||
|
{
|
||||||
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getAccessControlAllowHeaders(): ?string
|
||||||
|
{
|
||||||
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
public function getAccessControlRequestMethod(): ?string
|
||||||
|
{
|
||||||
|
return $this->__call__()->{__FUNCTION__}();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -132,4 +132,24 @@ interface RequestInterface extends \Psr\Http\Message\RequestInterface
|
|||||||
* @return int
|
* @return int
|
||||||
*/
|
*/
|
||||||
public function getClientId(): int;
|
public function getClientId(): int;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
#[Pure] public function getAccessControlAllowOrigin(): ?string;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
#[Pure] public function getAccessControlAllowHeaders(): ?string;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
#[Pure] public function getAccessControlRequestMethod(): ?string;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -3,6 +3,7 @@
|
|||||||
namespace Server;
|
namespace Server;
|
||||||
|
|
||||||
|
|
||||||
|
use JetBrains\PhpStorm\Pure;
|
||||||
use Server\Message\Response;
|
use Server\Message\Response;
|
||||||
use Server\SInterface\DownloadInterface;
|
use Server\SInterface\DownloadInterface;
|
||||||
|
|
||||||
@@ -87,4 +88,25 @@ interface ResponseInterface extends \Psr\Http\Message\ResponseInterface
|
|||||||
*/
|
*/
|
||||||
public function withAccessControlAllowHeaders(string $value): ResponseInterface;
|
public function withAccessControlAllowHeaders(string $value): ResponseInterface;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
#[Pure] public function getAccessControlAllowOrigin(): ?string;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
#[Pure] public function getAccessControlAllowHeaders(): ?string;
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @return string|null
|
||||||
|
*/
|
||||||
|
#[Pure] public function getAccessControlRequestMethod(): ?string;
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user