I'm busy trying to make an API using DataSnap in Delphi and I need to decide between TDSRESTWebDispatcher
and TDSHTTPWebDispatcher
.
I read that the HTTP dispatcher also supports DBX/Native HTTP connections, but what is that? What does that mean for my use case of creating an API using DataSnap in Delphi?
This is how i understand it:
Dispatcher component | Protocol(s) supported | Typical use case | Client types |
---|---|---|---|
TDSRESTWebDispatcher |
REST/JSON over HTTP | Web‑style APIs, URL maps to server methods, JSON payloads | Any HTTP client (browser, TNetHTTPClient , Python, JavaScript, mobile, etc.) |
TDSHTTPWebDispatcher |
DBX binary protocol over HTTP (“native HTTP”), and optionally REST if enabled | Delphi‑to‑Delphi RPC over HTTP, plus optional REST endpoints | Delphi/C++Builder apps using DataSnap client components and/or generic REST consumers |