Websydian v6.1 online documentationOnline documentation - WebsydianExpress v3.0

WebsydianExpress - Callback Point


HandlingRequestStart

Type

Global callback point implemented by the WebsydianExpress runtime.

Note that changing the callback functions for a global callback point impacts all the sites.

When is the callback point called

HandlingRequestStart is called immediately after the request has been received - before any ProcessEntryPoint or EventHandler function has been called.

At this point, the request string has been parsed and is available for processing.

How does the callback point influence later functionality

The callback functions for this callback point will not normally have any influence on the following functionality.

Errors returned in *Returned Status are disregarded by the callback point.

Example of use

You can use this callback point together with ApplicationServiceStart, ApplicationServiceEnd and HandlingRequestEnd to introduce a logging system for the application. If you log the time in this callback point and in HandlingRequestEnd, you can find the processing time of the request on the server. In this way you can find out whether a performance issue is related to the processing time or whether it is related to network issues.

Abstract callback function

Inherit from Callback.WebServer.HandlingRequestStart.AbstractCallbackFunction to create a callback function that can be called by this callback point.