Daraja HTTP Framework 2.0 released

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 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