symfony httpclient request file code example
Example: httpclient add authorization header symphony
$response = $client->request('GET', 'https://...', [
'auth_basic' => ['the-username', 'the-password'],
// ...
]);
$response = $client->request('GET', 'https://...', [
'auth_basic' => ['the-username', 'the-password'],
// ...
]);