Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Instrukcja Użytkownika Strona 70

  • Pobierz
  • Dodaj do moich podręczników
  • Drukuj
  • Strona
    / 132
  • Spis treści
  • BOOKMARKI
  • Oceniono. / 5. Na podstawie oceny klientów
Przeglądanie stron 69
58 Brocade Virtual ADX OpenScript API Guide
53-1003243-01
Methods
5
OS_HTTP_REQUEST::cookie_count
Returns the number of cookies present in the HTTP request.
Context
This function called in http response context will have no effect.
Usage
Can be used to perform load-balancing based on the number of cookies.
Input Parameters
None.
Return Values
The following table contains the return values.
Example
OS_HTTP_REQUEST::cookie_persist("name"=>$cookie_name,
"domain"=>$domain, "path"=>$path, "age"=>$age)
Inserts a cookie in the http response that the system can persist on. The cookie name, domain,
port and age can be specified in the call. The cookie value is the server-id of the selected real
server.
Context
HTTP request event. If called in the HTTP response context, undefined will be returned.
TABLE 58 Return Values
Name Type Description
integer The number of cookies present
in the request.
use OS_HTTP_REQUEST;
sub HTTP_REQUEST{
my $cookie_cnt = OS_HTTP_REQUEST::cookie_count;
}
Przeglądanie stron 69
1 2 ... 65 66 67 68 69 70 71 72 73 74 75 ... 131 132

Komentarze do niniejszej Instrukcji

Brak uwag