0048-laravel-http-client-resilience
CommunityMake Laravel HTTP calls reliably resilient
AuthorMrJmpl3
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Outbound HTTP requests can fail unpredictably due to timeouts, transient network issues, or unstable upstream services, leading to unclear behavior and hard-to-debug outages.
Core Features & Use Cases
- Explicit timeouts and bounded retries: Apply a timeout and a limited retry strategy with backoff to handle transient failures safely.
- Failure-aware handling with observable context: Log request/response context when responses are not successful, capturing status and a safe excerpt of the body for diagnostics.
- Scoped configuration for clean request building: Use base URLs, headers, and request parameters in a single, consistent call flow for typical API consumption scenarios (e.g., fetching resources from a JSON API).
Quick Start
Update your Laravel HTTP client code to set a timeout, add a limited retry with backoff, and log status plus a truncated response body whenever the call is unsuccessful.
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: 0048-laravel-http-client-resilience Download link: https://github.com/MrJmpl3/codex_____data_____configuration/archive/main.zip#0048-laravel-http-client-resilience Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.