Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果第一次连接失败,如何告诉httpie重试n次?
我不认为 httpie 内置了这个功能,但由于它只是一个命令行工具,你可以在你使用 httpie 的任何 shell 中使用某种重试方法......例如,在类似的bash东西中:
bash
# Retry the 5 times command if returned exit code is not 0 for i in {1..5}; do http httpie.orgs && break || echo "Retrying..."; done