Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
DocumentRoot property
Holds root path for documents.
Type
StringSyntax
- Basic
object.DocumentRoot [= value]
The DocumentRoot(object,value) syntax has these parts:
The DocumentRoot(object,value) syntax has these parts:
object | An expression evaluating to an object of type WebUser |
value | A String value. |
Remarks
When this property is set, on each client's request wodWebServer will automatically generate response to that request. If file with requested name is located - it is loaded to Response.Filename property and Response.StatusCode is set to 200 (OK). If page is not found, Response.StatusCode is set to 404 (not found).You will still have a chance to interfere with this automation from within RequestDone event so you can change response properties. If you don't specify this property, wodWebServer will leave up creating response up to you, completely.
When client connects, this property is copied to User.DocumentRoot property.