Back to product page
- Introduction
- License agreement
- Getting Started
- Enumerations
- Objects
- How to get support?
- Technical information
- Fast notifications interface
- Error list
Filename property
Holds full path where response body is stored.
Type
StringSyntax
- Basic
object.Filename [= value]
The Filename(object,value) syntax has these parts:
The Filename(object,value) syntax has these parts:
object | An expression evaluating to an object of type WebResponse |
value | A String value. |
Remarks
You should set this property to a file containing response page for client's request. wodWebServer always saves content in the file on local disk. If Filename property isn't set by your code, wodWebServer creates temporary file in temporary directory, uses it as storage space, and then deletes the file when Response is destroyed.Filename is set by wodWebServer only if you write to Body property, and Filename wasn't set before that. Since most of the time you will return content to the client, specifying Filename property will cause content from the disk to be sent.
You can access contents of this file directly by reading/writing to a file on disk, or you can use Body property which is wrapper that loads and saves body for you - but presents it as String variable.