Skip to content

Reference for unit 'fpHTTP'

HTTP request handling for web servers

uses

Used units Description
System
sysutils
Classes
HTTPDefs Basic HTTP protocol declarations and classes
HTTPRoute HTTP request routing implementation

Overview

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.