for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/*
* This file is part of the Ivory Http Adapter package.
*
* (c) Eric GELOEN <[email protected]>
* For the full copyright and license information, please read the LICENSE
* file that was distributed with this source code.
*/
namespace Ivory\HttpAdapter\Extractor;
use Ivory\HttpAdapter\Asset\AbstractUninstantiableAsset;
/**
* @author GeLo <[email protected]>
class ProtocolVersionExtractor extends AbstractUninstantiableAsset
{
* @param array|string $headers
* @return string
public static function extract($headers)
return substr(StatusLineExtractor::extract($headers), 5, 3);
}