beautypg.com

Os_http_request::header($name), Return values, Example – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 58: Context, Usage, Input parameters

background image

46

Brocade Virtual ADX OpenScript API Guide

53-1003243-01

Methods

5

Return Values

None

Example

OS_HTTP_REQUEST::header($name)

Return the HTTP header value of the header specified by the value in $name.

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 specified header.

Input Parameters

The following table contains the input values.

Return Values

The following table contains the return values.

TABLE 40

Input Values

Name

Type

Description

$name

string

A string representing the value
of the header name.

TABLE 41

Return Values

Name

Type

Description

string

Value of the HTTP header specified by $name.
If not present, undefined is returned.

use OS_HTTP_REQUEST;

sub HTTP_REQUEST{

OS_HTTP_REQUEST::version("1.1");

}