Back to product page

Filename property


Holds full path where response body is stored.

Type

String

Syntax

  • Basic
object.Filename [= value]
The Filename(object,value) syntax has these parts:
objectAn expression evaluating to an object of type WebResponse
valueA 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.

Platforms

Windows