Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[HttpClient] Ability to add middlewares #32367
It would be nice to have the ability to add middlewares to the request.
<?php $middlewares = Middlewares::create(); $middlewares->push($instanceOfMyMiddleware); $this->client->request('GET', 'https://my-example-api.com/endpoint', ['middlewares' => $middlewares]);