Version 2.4 of the RESTful extension is compatible with the new 1.2 release of Daraja HTTP Framework. It uses the TdjRequest and TdjResponse types instead of TRequest and TResponse. It also uses const string parameters to reduce the overhead caused by refrence counting.
Habarisoft released Daraja Framework 1.2, with updated example projects, DUnit / FPCUnit test enhancements, updated documentation, core library performance fixes, and other changes. The Twitter Bootstrap demo project (screen shot below) uses a single code base for Delphi and Lazarus. Also available is a new release of the Daraja Framework RESTful extension.
Habarisoft released the first beta of the Daraja Framework 1.2 HTTP framework, with updated example projects, DUnit / FPCUnit test enhancements, updated documentation, and other changes. The Twitter Bootstrap demo project (screen shot below) uses a single code base for Delphi and Lazarus.
The Daraja Framework unit tests (DUnit/FPCUnit based) are now more self-documenting. A new HTTPTestCase test base class provides methods CheckGETResponseEquals, CheckPOSTResponseEquals, CheckGETResponseContains, CheckGETResponse404, and others, which allow to write more concise unit test methods.
The changes are available in the master branch, a snapshot is available for download here.
Daraja Framework is a HTTP service framework for Free Pascal and Delphi 2009 and newer.
Its source code is dual licensed under the GNU Affero General Public License Version 3 and a commercial license, which removes the requirements of the AGPL license. When the annual subscription is terminated, the license is still valid for unlimited time. Termination of the subscription only ends additional services such as the free (basic) support.
In the past, the separate “experimental” RESTful extension library only compiled with Delphi, as it used anonymous methods.
With version 2.0 / 2.1, the RESTful extension library now also compiles with Free Pascal, where it uses procedural types instead of anonymous methods.
In projects which must be single-source for Delphi and Free Pascal, usage of procedural types can be enforced by defining the symbol DARAJA_RESTFUL_COMPATIBLE.