Essence\Http\Client\Native::_createContext PHP Méthode

_createContext() protected méthode

Returns a configured HTTP context.
protected _createContext ( ) : resource
Résultat resource Context.
    protected function _createContext()
    {
        $options = [];
        if ($this->_userAgent) {
            $options['http']['user_agent'] = $this->_userAgent;
        }
        return stream_context_create($options);
    }