Request.getHeaders(
String) returns an Enumeration. So I think it should return the values as individual strings. However I have one basic doubt. Suppose I define a custom header say 'demoHeader' and set it in response like this:
response.addHeader('demoHeader', 'demoValue')
Now from where can I read this header value? The header will remain till the response has been sent to the browser. The subsequent request will not contain this header. This scenario might not have any significance in real life but I'm just curious...