WeOnlyDo! wodWebServer ActiveX - TransferEncoding Property
      
 

Description

Determines encoding of response body.


Property type

A TransferEncodingsEnum enumeration.  


Syntax

object.TransferEncoding [= value]



The TransferEncoding Property syntax has these parts:

Part Description
object An expression evaluating to an object of type WebResponse.
value A TransferEncodingsEnum enumeration, as described in settings.

Settings

The settings for value are:

Constant Value Description
 NoEncoding 0 No encoding is used to send response body.
 ChunkedEncoding 1 Response is sent in series of chunks.

Remarks

TransferEncoding property defines if wodWebServer will return response as 'chunked' or in plaintext 'as is' format. Typically, when you plan to change content on the fly, chunked encoding is used, since response headers (that are sent before response body) need to contain length of the data that is returned. If it is known, wodWebServer uses no encoding. If it is not known, chunked encoding is used.

wodWebServer will choose appropriate encoding for the response, but you can force it through this property if you need to.

If you plan to use SendChunk method - you must set this property to ChunkedEncoding.