Http::withHeaders code example
Example 1: Http::withHeaders
$response = Http::timeout(3)->get(...);
Example 2: Http::withHeaders
$response = Http::withToken('token')->post(...);
Example 3: Http::withHeaders
// Basic authentication...
$response = Http::withBasicAuth('[email protected]', 'secret')->post(...);
// Digest authentication...
$response = Http::withDigestAuth('[email protected]', 'secret')->post(...);