File manager - Edit - /home/autoph/public_html/projects/tickets-autohub/vendor/cboden/ratchet/src/Ratchet/Http/CloseResponseTrait.php
Back
<?php namespace Ratchet\Http; use Ratchet\ConnectionInterface; use GuzzleHttp\Psr7\Message; use GuzzleHttp\Psr7\Response; trait CloseResponseTrait { /** * Close a connection with an HTTP response * @param \Ratchet\ConnectionInterface $conn * @param int $code HTTP status code * @return null */ private function close(ConnectionInterface $conn, $code = 400, array $additional_headers = []) { $response = new Response($code, array_merge([ 'X-Powered-By' => \Ratchet\VERSION ], $additional_headers)); $conn->send(Message::toString($response)); $conn->close(); } }
| ver. 1.4 |
.
| PHP 8.1.32 | Generation time: 0 |
proxy
|
phpinfo
|
Settings