Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
sirn-se committed Sep 17, 2024
1 parent 4034a88 commit a621943
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
2 changes: 2 additions & 0 deletions docs/Changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,10 @@
### `3.2.0`

* Server `setContext()` method (@sirn-se)
* RSV flags on Frame (@sirn-se)
* Fixed various typos and broken links (@pieterocp)
* `phrity/net-stream v2.1` for context support and select warning hanling (@sirn-se)
* Deprecation warnings (@sirn-se)

## `v3.1`
Expand Down
15 changes: 5 additions & 10 deletions src/Http/HttpHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,16 +11,10 @@
SocketStream,
Uri
};
use Psr\Http\Message\{
MessageInterface,
RequestInterface,
ResponseInterface,
StreamInterface
};
use Psr\Http\Message\MessageInterface;
use Psr\Log\{
LoggerInterface,
LoggerAwareInterface,
NullLogger
};
use RuntimeException;
use Stringable;
Expand All @@ -29,25 +23,26 @@
/**
* WebSocket\Http\HttpHandler class.
* Reads and writes HTTP message to/from stream.
* @deprecated Remove LoggerAwareInterface in v4
*/
class HttpHandler implements LoggerAwareInterface, Stringable
{
use StringableTrait;

private SocketStream $stream;
private bool $ssl;
private LoggerInterface $logger;

public function __construct(SocketStream $stream, bool $ssl = false)
{
$this->stream = $stream;
$this->ssl = $ssl;
$this->setLogger(new NullLogger());
}

/**
* @deprecated Remove in v4
*/
public function setLogger(LoggerInterface $logger): void
{
$this->logger = $logger;
}

public function pull(): MessageInterface
Expand Down

0 comments on commit a621943

Please sign in to comment.