[Lazarus] SQLDBRestBridge
Michael Van Canneyt
michael at freepascal.org
Fri Nov 4 09:05:14 CET 2022
On Thu, 3 Nov 2022, duilio foschi wrote:
>> Please look at the intercept example
>
> could you please expand on this?
In the http request router, you can register global handlers which are executed
for every request. You can choose if the handler is executed before or after
the normal handler for the request.
>
> Where do I find the intercept example?
https://gitlab.com/freepascal.org/fpc/source/-/blob/main/packages/fcl-web/examples/intercept/simpleserver.pas
This example shows both kind of handlers, before and after request. The
before request handler just logs the URL, just what you need.
Michael.
More information about the lazarus
mailing list