I cannot set timeout option as options are not sent to guzzle client in send method
$response = $this->middlewareManager->peel($request, function(Request $request) use ($responseClass) {
try {
$response = $this->httpClient->send($request->newPsr7Request());
- @return ResponseInterface
- @throws GuzzleException
*/
public function send(RequestInterface $request, array $options = [])
{
$options[RequestOptions::SYNCHRONOUS] = true;
return $this->sendAsync($request, $options)->wait();
}