HTTP request handling for web servers
uses |
||
|
Basic HTTP protocol declarations and classes |
|
|
HTTP request routing implementation |
The fphttp unit provides the foundation for handling HTTP requests in web server applications. It implements content producers, web actions, and web modules for processing HTTP requests and generating responses.
The idea behind the web module and action architecture is that they process an URL of the following kind:
{BaseURL}/module/action/*
Where the appropriate module is determined by the http router and the correct action is selected by the module. The action's event handler will then be executed.
If your application requires a more flexible URL handling, you may want to register callbacks directly with the HTTP router. If you are looking to generate HTML, then the fpweb unit contains web modules that descend from TCustomHTTPModule but are geared towards generating HTML.