DataSift\Storyplayer\DeviceLib\LocalWebDriverAdapter::applyHttpBasicAuthForHost PHP Method

applyHttpBasicAuthForHost() public method

public applyHttpBasicAuthForHost ( string $hostname, string $url ) : string
$hostname string
$url string
return string
    public function applyHttpBasicAuthForHost($hostname, $url)
    {
        // get the auth credentials
        $credentials = $this->getHttpBasicAuthForHost($hostname);
        if (isset($this->proxySession)) {
            $this->proxySession->setHttpBasicAuth($hostname, $credentials['user'], $credentials['pass']);
        }
        // all done
        return $url;
    }