Back to product page

RequestDone callback method

Called when wodWebServer receives request headers from the user.


  • Basic
object.RequestDone (Owner, User)
The RequestDone(object,Owner,User) syntax has these parts:
objectAn expression evaluating to an object of type IwodWebNotify
OwnerAn expression evaluating to an object of type wodWebServer
UserWebUser object. Reference to user that called CGI script.


NOTE: This method is called only if you implemented IwodWebNotify interface in your application, and wodWeb1.Notification property has received reference to instance of your implementation.

This is THE MOST IMPORTANT notification method in wodWebServer - this is the place you should put your code to prepare responses on user's requests.

When new request arrive to GET or POST information from/to your WEB server, you will catch it in this notification method. From within this event you should prepare outgoing response - either 'by hand' by setting Response.Headers and filling up Response.Body (or Response.Filename) property, or you can just let wodWebServer do it automatically - by setting WebServer1.DocumentRoot property, and automatic document delivery. It's up to you.

If you don't do anything inside this notification method and you don't set DocumentRoot property - wodWebServer will not know what kind of content to provide to the user, and most probably users will receive errors as a result.