Usage
The package exposes only two service IDs, but they serve different audiences:
- use
Psr\Http\Client\ClientInterfacewhen your application should stay on the PSR-18 contract; - use
Symfony\Component\HttpClient\HttpClientwhen you intentionally want Symfony-specific features such asrequest()andwithOptions().
The pages below explain how to retrieve those services, how they relate to PSR-17 factories, and which path is usually best for new code.