A new tutorial for the Daraja Framework gives an introduction into the technique of HTTP+HTML form-based authentication. The project uses only one resource handler, which handles GET and POST requests for the resource address /index.html. Depending on whether the client is already authenticated or not, the page either contains a login form, or a logout button.
Habarisoft released Daraja Framework 1.2.2, a maintenance release which fixes bugs in the BootstrapDemo demo code and optional units (ShutDownHelper). The new release also includes an example project for a HTTPS server, not included are the certificates and the OpenSSL libraries.
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.