BBjHttpResponse::getHeaders (Deprecated)
BBjHttpResponse::getHeaders is deprecated for BBj 21.00 and higher, and has been replaced by BBxServletResponse::getHeaders.
Description
In BBj 14.00 and higher, this method returns a BBjVector containing all the values of the specified header from the BBjHttpResponse object.
Syntax
Return Value |
Method |
getHeaders(string name) |
Parameters
Parameter |
Description |
name |
Specifies the name of the header. |
Return Value
a BBjVector containing the values for the header
Remarks
The example below shows getting all the values of the Accept-Encoding header from a response within a BBjServlet.
Example
|