lib/Doctrine/CouchDB/HTTP/StreamClient.php
public function getConnection(
        $method,
        $path,
        $data = null,
        array $headers = []
    ) {
        $fullPath = $path;
        if ($this->options['path']) {
            $fullPath = '/'.$this->options['path'].$path;
        }

        $this->checkConnection($method, $fullPath, $data, $headers);

        return $this->httpFilePointer;
    }
public function getConnection(
        $method,
        $path,
        $data = null,
        array $headers = []
    ) {
        $fullPath = $path;
        if ($this->options['path']) {
            $fullPath = '/'.$this->options['path'].$path;
        }

        $this->checkConnection($method, $fullPath, $data, $headers);

        return $this->httpFilePointer;
    }
public function getConnection ( $ method , $ path , $ data = null , array $ headers = [ ] ) { $ fullPath = $ path ; if ( $ this -> options [ 'path' ] ) { $ fullPath = '/' . $ this -> options [ 'path' ] . $ path ; } $ this -> checkConnection ( $ method , $ fullPath , $ data , $ headers ) ; return $ this -> httpFilePointer ; }
Return the connection pointer after setting up the stream connection.
The returned resource can later be used to read data in chunks.

@param string $method
@param string $path
@param string $data
@param array  $headers

@throws HTTPException

@return resource
Return the connection pointer after setting up the stream connection . The returned resource can later be used to read data in chunks .