SimpleHttpResponse::isLastPacket PHP Метод

isLastPacket() защищенный Метод

Test to see if the packet from the socket is the last one.
protected isLastPacket ( string $packet ) : boolean
$packet string Chunk to interpret.
Результат boolean True if empty or EOF.
    protected function isLastPacket($packet)
    {
        if (is_string($packet)) {
            return $packet === '';
        }
        return !$packet;
    }