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.
--
_______________________________________________
lazarus mailing list
lazarus@lists.lazarus-ide.org
https://lists.lazarus-ide.org/listinfo/lazarus