This commit is contained in:
2021-09-09 17:01:52 +08:00
parent 3a0f2f2882
commit 46822da6d7
4 changed files with 97 additions and 0 deletions
+22
View File
@@ -3,6 +3,7 @@
namespace Server;
use JetBrains\PhpStorm\Pure;
use Server\Message\Response;
use Server\SInterface\DownloadInterface;
@@ -87,4 +88,25 @@ interface ResponseInterface extends \Psr\Http\Message\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;
}