Daraja HTTP Framework 2.5 released

dj

The Daraja HTTP Framework is a free open source library for Object Pascal (Free Pascal 3.2.0, Delphi 2009+), based on the stand-alone HTTP server component in Internet Direct (Indy).

This release includes a new example application which demonstrates server-sent events.

More information

– GitHub: https://github.com/michaelJustin/daraja-framework
– API documentation: https://michaeljustin.github.io/daraja-framework/
– Resources: https://www.habarisoft.com/daraja_framework.html
– Wiki: https://github.com/michaelJustin/daraja-framework/wiki

Advertisement

Daraja HTTP Framework 2.0 released

dj

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:
- TdjRequest; Response: TdjResponse);

new:
+ procedure Handle(const Target: string; Context: TdjServerContext; Request:
+ TdjRequest; Response: TdjResponse);

Note: this is a breaking change for code which declares custom handler implementations. Such code must now use a const parameter.

“Using const allows the compiler to optimize code for structured – and string-type parameters. It also provides a safeguard against unintentionally passing a parameter by reference to another routine.”

More information

– GitHub: https://github.com/michaelJustin/daraja-framework
– API documentation: https://michaeljustin.github.io/daraja-framework/
– Resources: https://www.habarisoft.com/daraja_framework.html
– Wiki: https://github.com/michaelJustin/daraja-framework/wiki

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.

Continue reading “Daraja Framework unit test enhancements”

Daraja Framework: commercial license

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.

Continue reading “Daraja Framework: commercial license”

Daraja Framework RESTful extension 2.1 released

Daraja Framework is a free open source library for Object Pascal, based on the stand-alone HTTP server in Internet Direct (Indy).

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.

 

Continue reading “Daraja Framework RESTful extension 2.1 released”