
66 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
6
Usage
Can be used to set the version.
Input Parameters
The following table contains the input values.
Return Values
None
Example
OS_HTTP_RESPONSE::header ($name)
Returns the value of the HTTP header specified by $name if present otherwise undefined.
Context
This function called in http request context will have no effect.
Usage
Can be used to retrieve the header value.
Input Parameters
The following table contains the input values.
TABLE 65 Input Values
Name Type Description
$val string An string representing the
version value.
TABLE 66 Input Values
Name Type Description
$name string An string representing the value
of HTTP header specified by
$name.
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
OS_HTTP_RESPONSE::version("1.1");
}
Comentarios a estos manuales