Skip to content

Options are not forwarded to guzzle client #1

@damiendiels

Description

@damiendiels

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();
      }

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions