original_string: 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,
          ]);
      }
code: 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,
          ]);
      }
code_tokens: 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 , ] ) ; }
docstring: 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
docstring_tokens: Build the stream context out of the request object .