public function send($method, $arguments)
    {
        $uri = $arguments[0];
        $params = isset($arguments[1]) ? $arguments[1] : [];
        if (substr($uri, 0, 1) !== '/') {
            $uri = '/' . $uri;
        }

        $response = $this->httpClient->send(
            new Request($method, new Uri($uri)),
            $params
        );

        return $response;
    }
public function send($method, $arguments)
    {
        $uri = $arguments[0];
        $params = isset($arguments[1]) ? $arguments[1] : [];
        if (substr($uri, 0, 1) !== '/') {
            $uri = '/' . $uri;
        }

        $response = $this->httpClient->send(
            new Request($method, new Uri($uri)),
            $params
        );

        return $response;
    }
public function send ( $ method , $ arguments ) { $ uri = $ arguments [ 0 ] ; $ params = isset ( $ arguments [ 1 ] ) ? $ arguments [ 1 ] : [ ] ; if ( substr ( $ uri , 0 , 1 ) !== '/' ) { $ uri = '/' . $ uri ; } $ response = $ this -> httpClient -> send ( new Request ( $ method , new Uri ( $ uri ) ) , $ params ) ; return $ response ; }
Send an http request through the http client.

@param  string $method http method sent
@param  array $arguments Array containing the URI to send the request and the parameters of the request
@return \GuzzleHttp\Psr7\Response
Send an http request through the http client .