Skip to main content

2 posts tagged with "software testing"

View All Tags

Simulate Delays in HTTP Requests

· 3 min read
Daniel Caldas
Daniel Caldas

There might be a few reasons why we would want to delay an HTTP request:

  • You want to test how your UI behaves to a slow response from an upstream service.
  • There's a race condition in my code, and I suspect that it happens when the request to A is slower than the request B.
  • You want to show off that beautiful loading animation you've been working on all day!