src/Fetch.php
public function send(string $method, string $url, array $options)
    {
        try {
            // Guzzle overwrites all query string values in the URI if queries are specified
            // in the 'query' option, so they need to be extracted first.
            $optionsPayload = $this->mergeOptions(
                ['query' => $this->parseQueryParams($url)],
                $options
            );

            $response = $this->buildClient()->request($method, $url, $optionsPayload);

            return $this->buildResponse($response);
        } catch (GuzzleException $exception) {
            // No "custom" exceptions, just rethrow whatever guzzle spits out.
            throw $exception;
        }
    }
public function send(string $method, string $url, array $options)
    {
        try {
            // Guzzle overwrites all query string values in the URI if queries are specified
            // in the 'query' option, so they need to be extracted first.
            $optionsPayload = $this->mergeOptions(
                ['query' => $this->parseQueryParams($url)],
                $options
            );

            $response = $this->buildClient()->request($method, $url, $optionsPayload);

            return $this->buildResponse($response);
        } catch (GuzzleException $exception) {
            // No "custom" exceptions, just rethrow whatever guzzle spits out.
            throw $exception;
        }
    }
public function send ( string $ method , string $ url , array $ options ) { try { // Guzzle overwrites all query string values in the URI if queries are specified // in the 'query' option, so they need to be extracted first. $ optionsPayload = $ this -> mergeOptions ( [ 'query' => $ this -> parseQueryParams ( $ url ) ] , $ options ) ; $ response = $ this -> buildClient ( ) -> request ( $ method , $ url , $ optionsPayload ) ; return $ this -> buildResponse ( $ response ) ; } catch ( GuzzleException $ exception ) { // No "custom" exceptions, just rethrow whatever guzzle spits out. throw $ exception ; } }
Build the client and send the request.

@param string $method
@param string $url
@param array  $options
@return \ksmz\nana\Consume

@throws \GuzzleHttp\Exception\GuzzleException
Build the client and send the request .