
56 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
5
Usage
Can be used to perform load-balancing based on the content length.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
OS_HTTP_REQUEST::cookie ($name)
Returns the cookie value specified by $name if it is present otherwise it returns undefined.
Context
HTTP request event. If called in the HTTP response context, undefined will be returned.
Usage
Can be used to perform load-balancing based on the cookie.
Input Parameters
The following table contains the input values.
TABLE 54 Return Values
Name Type Description
integer The length of the request
content
TABLE 55 Input Values
Name Type Description
$name string A string representing the cookie name.
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
my $content_length = OS_HTTP_REQUEST::content_length;
}
Comentarios a estos manuales