
64 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
6
Usage
Can be used to retrieve the response code.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
OS_HTTP_RESPONSE::code ($val)
Sets the status code specified by $val.
Context
This function called in http request context will have no effect.
Usage
Can be used to rewrite the code.
Input Parameters
The following table contains the input values.
Return Values
None
TABLE 62 Return Values
Name Type Description
integer The value of response code.
TABLE 63 Input Values
Name Type Description
$val string An string representing the code
value.
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
my $code = OS_HTTP_RESPONSE::code;
}
Komentarze do niniejszej Instrukcji