protected function createBaseString(Request $request, array $params)
    {
        // Remove query params from URL. Ref: Spec: 9.1.2.
        //TODO - remove params properly, not this hack method
        $request = clone $request;
//        $request->setQueryFields([]);

        $uri = $request->getUri();
        $queryString = '';
        if ($questionMark = strpos($uri, '?')) {
            $uri = substr($uri, 0, $questionMark);
            $request->setUri($uri);
        }

//        $url = $request->getUri();
        $query = http_build_query($params, '', '&', PHP_QUERY_RFC3986);

        return strtoupper($request->getMethod())
            . '&' . rawurlencode($uri)
            . '&' . rawurlencode($query);
    }