DEV Community

Beaver Bridge
Beaver Bridge

Posted on

delay 지원하는 rest api 사이트

connection timeout error 테스트하려고 찾아봤는데, 생각보다 안 나오네?
그냥 응답은 https://jsonplaceholder.typicode.com 이나 https://dummyjson.com 을 사용하면 되는데...
호출할 때 타임아웃 설정하면 되지만, 로딩바도 표시를 해야해서리..

그래도 찾아보니 나오긴 나온다.
https://httpstat.us 에서는 https://httpstat.us/200?delay=5000 하면 5초 뒤에 응답이 온다.

https://httpbin.org 에서는 https://httpbin.org/delay/10 하면 10초 뒤에 응답이 온다.

Top comments (0)

Sentry image

See why 4M developers consider Sentry, “not bad.”

Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.

Learn more