Brocade Virtual ADX OpenScript API Guide (Supporting ADX v Manual de usuario Pagina 85

  • Descarga
  • Añadir a mis manuales
  • Imprimir
  • Pagina
    / 132
  • Tabla de contenidos
  • MARCADORES
  • Valorado. / 5. Basado en revisión del cliente
Vista de pagina 84
Brocade Virtual ADX OpenScript API Guide 73
53-1003243-01
Methods
6
NOTE
This API will remove all headers with a value specified by the $name variable (case insensitive). For
example, OS_HTTP_RESPONSE::remove_all_headers("X-Forwarded-For") will remove ALL
occurrences of headers by that name (case insensitive).
Context
This function called in a context other than the http response context will have no effect.
Input Parameters
The following table contains the input values.
Return Values
None
Example
OS_HTTP_RESPONSE::content_type
Returns response content type specified in the HTTP response if it exists, otherwise it will return
NULL.
Context
Called in the HTTP request context, undefined will be returned.
Usage
Can be used to retrieve the content type.
Input Parameters
None.
TABLE 76 Input Values
Name Type Description
$name string A string representing the name
of an HTTP response header.
use OS_HTTP_RESPONSE;
sub HTTP_RESPONSE{
OS_HTTP_RESPONSE::remove_all_headers("my-header");
}
Vista de pagina 84
1 2 ... 80 81 82 83 84 85 86 87 88 89 90 ... 131 132

Comentarios a estos manuales

Sin comentarios