Os_http_request::url, Input parameters, Return values – Brocade Virtual ADX OpenScript API Guide (Supporting ADX v03.1.00) User Manual

Page 51: Example, Context, Usage

Advertising
background image

Brocade Virtual ADX OpenScript API Guide

39

53-1003243-01

Methods

5

Input Parameters

The following table contains the input values.

Return Values

None

Example

OS_HTTP_REQUEST::url

Returns url specified in HTTP request header if it exists, otherwise it will return NULL.

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 url.

Input Parameters

None.

Return Values

The following table contains the return values.

TABLE 30

Input Values

Name

Type

Description

$val

string

A string representing the value
of the method type.

TABLE 31

Return Values

Name

Type

Description

string

Value of the url. If not present,
undefined is returned.

use OS_HTTP_REQUEST;

sub HTTP_REQUEST{

OS_HTTP_REQUEST::method("GET");

}

Advertising