SimpleHttpResponse::isLastPacket PHP Method

isLastPacket() protected method

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