← All talks

Guzzle Middleware

Why Guzzle's middleware stack is one of the most under-used features in Laravel's HTTP client — and how to use it to add logging, retries, auth, and metrics without touching the call site.

12 slides

Contents

  1. 01Guzzle Middleware
  2. 02Guzzle and Laravel's HTTP Client
  3. 03What is Middleware?
  4. 04Built-in Middleware
  5. 05Additional Middleware
  6. 06Using withMiddleware()
  7. 07mapRequest
  8. 08mapResponse
  9. 09Be Kind, Rewind
  10. 10Real-World Example
  11. 11Combining with Macros
  12. 12Resources