protected function getHandler() : HandlerStack
    {
        $stack = HandlerStack::create();

        $stack->push(
            Middleware::mapResponse(function (ResponseInterface $response) {
                $handler = $this->getResponseHandler();

                return new $handler($response);
            }),
            'bitcoind_response'
        );

        return $stack;
    }
protected function getHandler() : HandlerStack
    {
        $stack = HandlerStack::create();

        $stack->push(
            Middleware::mapResponse(function (ResponseInterface $response) {
                $handler = $this->getResponseHandler();

                return new $handler($response);
            }),
            'bitcoind_response'
        );

        return $stack;
    }
protected function getHandler ( ) : HandlerStack { $ stack = HandlerStack :: create ( ) ; $ stack -> push ( Middleware :: mapResponse ( function ( ResponseInterface $ response ) { $ handler = $ this -> getResponseHandler ( ) ; return new $ handler ( $ response ) ; } ) , 'bitcoind_response' ) ; return $ stack ; }
Gets Guzzle handler stack.

@return \GuzzleHttp\HandlerStack
Gets Guzzle handler stack .