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 HTTP server applications in Object Pascal requires only a few lines of code, and a minimum of installation and project set up steps.
Daraja supports dynamic (run-time) resource organization by context and path mappings
The framework uses the concept of web components for resource generation, which provide distinct handlers for GET, POST (and other) to separate resource building code for all supported HTTP methods.
Daraja provides the core foundation for serving HTTP resources of all content types – such as HTML pages, images, scripts, web service responses etc. – by mapping resource paths to your own code. Your request handler code then can create the response content, or let the framework serve a static file.
SLF4P is a simple logging facade for Object Pascal, tested with Delphi 2009 / DUnit and Free Pascal 2.6.4 / FPCUnit and 3.0, inspired by SLF4J.
The source code contains bindings to the Log4D logging framework, a SimpleLogger and a NOPLogger implementation. DUnit and FPCUnit test projects are included. Wiki with usage example: https://github.com/michaelJustin/slf4p/wiki