:SetOption()
Class
Syntax
:SetOption( nOption, lEnable ) --> lSuccess
Parameters
|
|
nOption |
Constant representing the desired Option. May be added together. |
|
|
lEnable |
Logical. .T. turns option on, .F. turns Option off. |
Return
lSuccess. .T. is operation was successful, otherwise .F. is returned.
Description
Enable/disable specified option
The :SetOption() Method sets whether a specified HTTP option is enabled or disabled.
|
HTTP_OPTION_NOCACHE |
This instructs the server to not return a cached copy of the resource. When connected to an HTTP 1.0 or earlier server, this directive may be ignored. |
|
HTTP_OPTION_KEEPALIVE |
This instructs the server to maintain a persistent connection between requests. This can improve performance because it eliminates the need to establish a separate connection for each resource that is requested. If the server does not support the keep-alive option, the client will automatically reconnect when each resource is requested. Although it will not provide any performance benefits, this allows the option to be used with all servers. |
See Also: