public static function getHttp($options = array(), $adapters = null)
	{
		if (!\is_array($options) && !($options instanceof \ArrayAccess))
		{
			throw new \InvalidArgumentException(
				'The options param must be an array or implement the ArrayAccess interface.'
			);
		}

		if (!$driver = self::getAvailableDriver($options, $adapters))
		{
			throw new \RuntimeException('No transport driver available.');
		}

		return new Http($options, $driver);
	}
public static function getHttp($options = array(), $adapters = null)
	{
		if (!\is_array($options) && !($options instanceof \ArrayAccess))
		{
			throw new \InvalidArgumentException(
				'The options param must be an array or implement the ArrayAccess interface.'
			);
		}

		if (!$driver = self::getAvailableDriver($options, $adapters))
		{
			throw new \RuntimeException('No transport driver available.');
		}

		return new Http($options, $driver);
	}
public static function getHttp ( $ options = array ( ) , $ adapters = null ) { if ( ! \ is_array ( $ options ) && ! ( $ options instanceof \ ArrayAccess ) ) { throw new \ InvalidArgumentException ( 'The options param must be an array or implement the ArrayAccess interface.' ) ; } if ( ! $ driver = self :: getAvailableDriver ( $ options , $ adapters ) ) { throw new \ RuntimeException ( 'No transport driver available.' ) ; } return new Http ( $ options , $ driver ) ; }
Method to create an Http instance.

@param   array|\ArrayAccess  $options   Client options array.
@param   array|string        $adapters  Adapter (string) or queue of adapters (array) to use for communication.

@return  Http

@since   1.0
@throws  \InvalidArgumentException
@throws  \RuntimeException
Method to create an Http instance .