Creating DataSnap Apache modules
One of the most awaited Delphi features by server-side Delphi developers is the support for the building of Apache webserver modules. Since Delphi XE6, Delphi can generate Apache modules, and this is very good news! The most recent Apache versions are supported: 2.0, 2.2, and 2.4. An Apache module is compatible only with the specific version for which has been compiled. So be sure about the Apache version you have to deploy your module before you create the project. However, it's possible to change the target Apache version by just changing a unit name.
Getting ready
In this recipe, we'll create a very simple REST service, with only one method returning a list of people. The service will be built using the Embarcadero DataSnap framework and the service itself will be packaged as an Apache webserver module. The real goal of this recipe is to show how to use the Delphi strength in creating Apache module, and a very light intro to DataSnap.
How to do it…
This recipe...