mirror of
https://github.com/bitinflow/expose.git
synced 2026-03-13 21:45:55 +00:00
wip
This commit is contained in:
@@ -3,15 +3,16 @@
|
||||
namespace App\Contracts;
|
||||
|
||||
use App\Server\Connections\ControlConnection;
|
||||
use App\Server\Connections\HttpConnection;
|
||||
use Ratchet\ConnectionInterface;
|
||||
|
||||
interface ConnectionManager
|
||||
{
|
||||
public function storeConnection(string $host, ?string $subdomain, ConnectionInterface $connection): ControlConnection;
|
||||
|
||||
public function storeHttpConnection(ConnectionInterface $httpConnection, $requestId): ConnectionInterface;
|
||||
public function storeHttpConnection(ConnectionInterface $httpConnection, $requestId): HttpConnection;
|
||||
|
||||
public function getHttpConnectionForRequestId(string $requestId): ?ConnectionInterface;
|
||||
public function getHttpConnectionForRequestId(string $requestId): ?HttpConnection;
|
||||
|
||||
public function removeControlConnection($connection);
|
||||
|
||||
|
||||
11
app/Contracts/RequestModifier.php
Normal file
11
app/Contracts/RequestModifier.php
Normal file
@@ -0,0 +1,11 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use App\Server\Connections\HttpConnection;
|
||||
use Illuminate\Http\Request;
|
||||
|
||||
interface RequestModifier
|
||||
{
|
||||
public function handle(Request $request, HttpConnection $httpConnection): ?Request;
|
||||
}
|
||||
Reference in New Issue
Block a user