Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual de usuario Pagina 77

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 132
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 76
Brocade Virtual ADX OpenScript API Guide 65
53-1003243-01
Methods
6
Example
OS_HTTP_RESPONSE::version
Returns the response version specified in the HTTP response header if it exists otherwise it returns
NULL.
Context
This function called in http request context will have no effect.
Usage
Can be used to retrieve the version.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
OS_HTTP_RESPONSE::version ($val)
Sets the version specified by $val.
Context
This function called in http request context will have no effect.
TABLE 64 Return Values
Name Type Description
string The value of the response
version if present otherwise
undefined.
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
OS_HTTP_RESPONSE::code(”200”);
}
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
my $version = OS_HTTP_RESPONSE::version;
if(defined $version && version eq "1.0") {
OS_HTTP_RESPONSE::version("1.1");
}
}
Vista de pagina 76
1 2 ... 72 73 74 75 76 77 78 79 80 81 82 ... 131 132

Comentarios a estos manuales

Sin comentarios