This commit is contained in:
2023-04-24 10:54:56 +08:00
parent a8285848d8
commit 01718f99ed
6 changed files with 148 additions and 160 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Kiri\Router;
use Kiri\Di\Interface\ResponseEmitterInterface;
use Psr\Http\Message\ResponseInterface;
class SwowHttpResponseEmitterInterface implements ResponseEmitterInterface
{
/**
* @param Response $proxy
* @param object $response
* @return void
*/
public function sender(ResponseInterface $proxy, object $response): void
{
// TODO: Implement sender() method.
$proxy->withHeader('Server', 'Swow');
$response->sendHttpResponse($proxy);
}
}