by paddw · 3y ago · 0 comments
You can't pre-fetch a POST request, or re-try after a timeout. Because you have to consider that the POST request could have unintended consequences if sent too many times.
You just document that that POST endpoint doesn't actually modify data.
A great example of this are OpenAI completions.
> You can just handle your POST request idempotently
You actually can't though, and you don't usually have to look far to run into a case where this gives the wrong behavior. Better to just have a separate verb.