Registry / http-client / symfony-http-client-contracts

symfony-http-client-contracts

JSON →
library3.6.0phppackagistunverified

Generic abstractions related to HTTP clients

composer require symfony/http-client-contracts
INSTALL
IMPORT
SIG · SYMFONY-HTTP-CLIEN
S
symfony-http-client-contracts
http-clientphpv3.6.0
harness data pending
Install & Compatibility
Where this runs

No compatibility data collected yet for this library.

Code
Verified usage

Verified import paths — ran on the pinned version, not inferred.

HttpClientInterface
use Symfony\Contracts\HttpClient\HttpClientInterface;

Use the HttpClientInterface to make a GET request and retrieve content

use Symfony\Contracts\HttpClient\HttpClientInterface; // Example usage with a concrete implementation $client = \Symfony\Component\HttpClient\HttpClient::create(); $response = $client->request('GET', 'https://api.example.com'); $content = $response->getContent();
Debug
Known issues

No known issues recorded.

Upgrade
Version history
3.6.0latest on Packagist
Audit
Dependencies

No dependency data recorded yet.

Agent activity
19 hits · last 30 days
node
18
Amazon
1
Resources
symfony-http-client-contracts — pip install symfony-http-client-contracts · libregistry