Files
react-http2/src/Stream/Http2Stream.php
Christopher Vagnetoft dc3225538f Added tests for Http2Middleware
* Added unit tests for middleware
* Message handling code
2024-07-27 13:23:18 +02:00

36 lines
637 B
PHP

<?php
namespace NoccyLabs\React\Http2\Stream;
use NoccyLabs\React\Http2\Connection\Http2Connection;
/**
* HTTP/2 Stream Class
*
*
*
*/
// TODO add DuplexStreamInterface here
class Http2Stream
{
const STATE_IDLE = 0;
const STATE_RESERVED_LOCAL = 1;
const STATE_RESERVED_REMOTE = 2;
const STATE_OPEN = 3;
const STATE_HALF_CLOSED_LOCAL = 4;
const STATE_HALF_CLOSED_REMOTE = 5;
const STATE_CLOSED = 6;
private int $state = self::STATE_IDLE;
private int $index;
private Http2Connection $connection;
public function __construct(Http2Connection $connection, int $index)
{
}
}