:GetOption()
Class
Syntax
:GetOption( nOption ) -> lOptionSet
Parameters
|
|
nOption |
Constant representing the desired Option. May be added together. |
Return
If the Option is set, the return value is .T., otherwise .F. is returned.
Description
The :GetOption() Method determines whether or not a particular option is set.
|
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: