This commit is contained in:
2023-04-24 14:23:24 +08:00
parent 94d38195d4
commit 0859867483
3 changed files with 5 additions and 4 deletions
+24
View File
@@ -0,0 +1,24 @@
<?php
namespace Kiri\Router;
use Kiri\Di\Interface\ResponseEmitterInterface;
use Psr\Http\Message\ResponseInterface;
class SwowHttpResponseEmitter 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);
}
}