public function sendRequest(Request $request)
    {
        foreach ($this->automaticRequestHeaders->getAll() as $name => $values) {
            $request->setHeader($name, $values);
        }

        $this->lastRequest = $request;
        $this->lastResponse = $this->requestEngine->sendRequest($request);
        return $this->lastResponse;
    }
public function sendRequest(Request $request)
    {
        foreach ($this->automaticRequestHeaders->getAll() as $name => $values) {
            $request->setHeader($name, $values);
        }

        $this->lastRequest = $request;
        $this->lastResponse = $this->requestEngine->sendRequest($request);
        return $this->lastResponse;
    }
public function sendRequest ( Request $ request ) { foreach ( $ this -> automaticRequestHeaders -> getAll ( ) as $ name => $ values ) { $ request -> setHeader ( $ name , $ values ) ; } $ this -> lastRequest = $ request ; $ this -> lastResponse = $ this -> requestEngine -> sendRequest ( $ request ) ; return $ this -> lastResponse ; }
Sends a prepared request and returns the respective response.

@param Request $request
@return Response
@api
Sends a prepared request and returns the respective response .