[Completely rewritten to get to the heart of the issue]
I am using Angular6. The HttpClient communicates with a server application. I need to know how to read the headers on the response when utilizing HttpClient with the post
and get
methods.
//Psuedocode
constructor( private http : HttpClient ){
...
let stream = http.post( url, data, options );
stream.subscribe( ( response : any ){
//here the response is stripped of headers
//it is the body of the response decoded as a JSON object.
//how do I read the response headers?
} );
}