Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
RequestDone event
Fires when wodWebServer receives request headers from the user.
Syntax
- Basic
Private Sub object_RequestDone (ByRef User)
The RequestDone(object,User) syntax has these parts:
The RequestDone(object,User) syntax has these parts:
object | An expression evaluating to an object of type wodWebServer |
User | WebUser object. Reference to the user who sent the request. |
Remarks
This is THE MOST IMPORTANT event 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 event. 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 event 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.