protected function _buildContext(Request $request, $options)
    {
        $this->_buildContent($request, $options);
        $this->_buildHeaders($request, $options);
        $this->_buildOptions($request, $options);

        $url = $request->getUri();
        $scheme = parse_url($url, PHP_URL_SCHEME);
        if ($scheme === 'https') {
            $this->_buildSslContext($request, $options);
        }
        $this->_context = stream_context_create([
            'http' => $this->_contextOptions,
            'ssl' => $this->_sslContextOptions,
        ]);
    }
protected function _buildContext(Request $request, $options)
    {
        $this->_buildContent($request, $options);
        $this->_buildHeaders($request, $options);
        $this->_buildOptions($request, $options);

        $url = $request->getUri();
        $scheme = parse_url($url, PHP_URL_SCHEME);
        if ($scheme === 'https') {
            $this->_buildSslContext($request, $options);
        }
        $this->_context = stream_context_create([
            'http' => $this->_contextOptions,
            'ssl' => $this->_sslContextOptions,
        ]);
    }
protected function _buildContext ( Request $ request , $ options ) { $ this -> _buildContent ( $ request , $ options ) ; $ this -> _buildHeaders ( $ request , $ options ) ; $ this -> _buildOptions ( $ request , $ options ) ; $ url = $ request -> getUri ( ) ; $ scheme = parse_url ( $ url , PHP_URL_SCHEME ) ; if ( $ scheme === 'https' ) { $ this -> _buildSslContext ( $ request , $ options ) ; } $ this -> _context = stream_context_create ( [ 'http' => $ this -> _contextOptions , 'ssl' => $ this -> _sslContextOptions , ] ) ; }
Build the stream context out of the request object.

@param \Cake\Http\Client\Request $request The request to build context from.
@param array $options Additional request options.
@return void
Build the stream context out of the request object .