protected function getRequestOptions()
    {
        $options = [
            'proxy' => Configuration::get('proxy')
        ];

        if (!empty(array_filter($this->multipartResources))) {
            $options['multipart'] = $this->multipartResources;
        }

        return $options;
    }
protected function getRequestOptions()
    {
        $options = [
            'proxy' => Configuration::get('proxy')
        ];

        if (!empty(array_filter($this->multipartResources))) {
            $options['multipart'] = $this->multipartResources;
        }

        return $options;
    }
protected function getRequestOptions ( ) { $ options = [ 'proxy' => Configuration :: get ( 'proxy' ) ] ; if ( ! empty ( array_filter ( $ this -> multipartResources ) ) ) { $ options [ 'multipart' ] = $ this -> multipartResources ; } return $ options ; }
Creates an array of request options based on the current status of the
http client.

@return array
Creates an array of request options based on the current status of the http client .