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.

 

daraja_logo_landscape_2016_3

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.

HelloWorldServer.dpr

Daraja supports dynamic (run-time) resource organization by context and path mappings

HelloWorldResource.pas

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.

Related projects

GitHub_Logo
IndyLogoSmall

Advertisements

Leave a Reply

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s