protected function handleRequest(RequestInterface $request)
    {
        if (!$this->getOption('batch', false)) {
            $response = $this->client->send($request);
            return $this->normalizeResponse($response);
        }
        $this->requests[] = $request;
    }
protected function handleRequest(RequestInterface $request)
    {
        if (!$this->getOption('batch', false)) {
            $response = $this->client->send($request);
            return $this->normalizeResponse($response);
        }
        $this->requests[] = $request;
    }
protected function handleRequest ( RequestInterface $ request ) { if ( ! $ this -> getOption ( 'batch' , false ) ) { $ response = $ this -> client -> send ( $ request ) ; return $ this -> normalizeResponse ( $ response ) ; } $ this -> requests [ ] = $ request ; }
Stores requests when batching, sends request
@param RequestInterface $request
@return mixed
Stores requests when batching sends request