Lightweight library that discovers available PSR-18 HTTP Client implementations by searching for a list of well-known classes that implement the relevant interface, and returns an instance of the first one that is found.
-
Updated
Mar 16, 2024 - PHP
Lightweight library that discovers available PSR-18 HTTP Client implementations by searching for a list of well-known classes that implement the relevant interface, and returns an instance of the first one that is found.
HttpClient instance, which might have been decorated with some resilient strategy against transient failure and with some default values. You might even receive a client where the BaseUrl is already set. So, this approach can be particularly useful if you need to hide a REST API client behind a strongly-typed service layer.
Lightweight mocking library for PSR-18 HTTP Client implementations, tailor-made to help you create test suites that are easier to write and maintain.
[READ ONLY] Lightweight mock implementations of PSR-18, PSR-17 and PSR-7 tailored to simplify unit testing.
Add a description, image, and links to the http-client-implementation topic page so that developers can more easily learn about it.
To associate your repository with the http-client-implementation topic, visit your repo's landing page and select "manage topics."