HTTP client requests:
Basic Request
$response = Http::get('https://api.example.com/users');
$data = $response->json();With Headers
$response = Http::withHeaders([
'Authorization' => 'Bearer ' . $token,
])->get($url);POST Request
$response = Http::post($url, [
'name' => 'John',
'email' => 'john@example.com',
]);Error Handling
$response->successful();
$response->failed();
$response->throw();Retry
Http::retry(3, 100)->get($url);