beautypg.com

Return values, Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 120

background image

108

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

8

Return Values

The following table contains the return values.

Example

TABLE 129

Return Values

Name

Type

Description

integer

The index of the client
connection in the current flow.

use OS_HTTP_REQUEST;

use OS_HTTP_REQUEST;

use OS_CONN;

my $connection_hash;

sub HTTP_REQUEST{

my $index = OS_CONN::client_connection;

$connection_hash{$index} = OS_HTTP_REQUEST::method;

}

sub HTTP_RESPONSE{

my $index = OS_CONN::client_connection;

print "The request method is $connection_hash{$index}\n";

}