Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Bedienungsanleitung Seite 63

  • Herunterladen
  • Zu meinen Handbüchern hinzufügen
  • Drucken
  • Seite
    / 132
  • Inhaltsverzeichnis
  • LESEZEICHEN
  • Bewertet. / 5. Basierend auf Kundenbewertungen
Seitenansicht 62
Brocade Virtual ADX OpenScript API Guide 51
53-1003243-01
Methods
5
OS_HTTP_REQUEST::content
Returns the request content specified in the HTTP request if it exists otherwise it will return
undefined.
A server load balancing action cannot be taken based on the content collected.
The size of content returned can be:
1. Larger than specified in the collect call if more data is available when the content is called.
2. Smaller than specified in the collect call if the actual complete body is smaller.
The previous content will be returned every time the content is called unless the script has explicitly
changed content or sent data out.
Context
If called in the HTTP response context, undefined will be returned.
Input Parameters
None.
Return Values
The following table contains the return values.
Performance impact
Use of this function will have a significant impact to system performance.
Example
TABLE 48 Return Values
Name Type Description
string The value of the request content
if present otherwise undefined.
use OS_HTTP_REQUEST;
use OS_SLB;
sub HTTP_REQUEST {
OS_HTTP_REQUEST::collect();
}
Sub HTTP_REQUEST_DATA {
my $content = OS_HTTP_REQUEST::content;
OS_SLB::send_to_server;
}
Seitenansicht 62
1 2 ... 58 59 60 61 62 63 64 65 66 67 68 ... 131 132

Kommentare zu diesen Handbüchern

Keine Kommentare