The Daraja HTTP Framework is a free open source library for Object Pascal (Free Pascal 3.0.4, Delphi 2009+), based on the stand-alone HTTP server component in Internet Direct (Indy). The 2.0 release uses const parameters in the Handle method of the IHandler interface and its implementing classes. old: - procedure Handle(Target: string; Context: TdjServerContext; Request: … Continue reading Daraja HTTP Framework 2.0 released
Daraja Framework 1.2.2 released
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.
Daraja Framework RESTful extension 2.4 released
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.
Daraja Framework 1.2 released
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.
Daraja Framework unit test enhancements
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. Example #1: TestNoMatchingContextReturns404 This test creates a … Continue reading Daraja Framework unit test enhancements
Daraja Framework 1.0 released
Daraja Framework is a new free open source library for Object Pascal (Free Pascal 2.6.4, Free Pascal 3.0, Delphi 2009+) available on GitHub. It is based on the stand-alone HTTP server in Internet Direct (Indy) and the successor to the Habari Web Components library by Habarisoft. With the Daraja Framework, writing well organized stand alone … Continue reading Daraja Framework 1.0 released