3 ms·
>REST APIs also fail at this insofar as you need to wait for a whole request to complete before you get a response This isn't a restriction from REST. Nothing
by charcircuit 4y ago
>REST APIs also fail at this insofar as you need to wait for a whole request to complete before you get a response
This isn't a restriction from REST. Nothing stops you from implementing an API that starts responding before your request is finished.
- ColonelPhantom 4y agoThe main problem I imagine is that you do not have a real way to deal with errors; you need to reply with 200 OK before you send anything else. There's also no separate channel for errors analogous to stderr.