#1 2024-07-27 09:24:39

mormoter
Member
Registered: 2024-06-14
Posts: 20

what is the difference among them?

THttpServerRequest
THttpServerRequestAbstract
TSQLRestServerURIContext

I'm a little confused

Offline

#2 2024-07-27 09:42:28

ab
Administrator
From: France
Registered: 2010-06-21
Posts: 14,655
Website

Re: what is the difference among them?

The documentation says:
- THttpServerRequestAbstract = abstract generic input/output structure used for HTTP server requests
- THttpServerRequest = generic input/output structure used for HTTP server requests
- TSQLRestServerURIContext = mORMot 1 backward compatibility types redirections of the next:
- TRestServerUriContext = calling context for a TOnRestServerCallBack event handler

You have several layers,
- one pure HTTP which starts with THttpServer*
- one at REST level, maybe without HTTP, which starts with TRestServer*

In mORMot, we make a distinction between REST and HTTP.
Because both are not the same, and in mORMot REST client-server logic may work without HTTP, e.g. in-process or over WebSockets or Unix sockets.

All this is explained in the mORMot 1 documentation.
Which is the reference for concepts and guidance.

Offline

#3 2024-07-27 09:57:31

mormoter
Member
Registered: 2024-06-14
Posts: 20

Re: what is the difference among them?

thank you ,seems I should read the tutorial 1.18  more carefully

Offline

Board footer

Powered by FluxBB