can anyone give me any reasons on why I\'m not getting any headers when getting a response back from http.post?
this.http.post(url, body).sub
To observe a response instead of a typecasted body, which the newer HttpClient does by default:
this.http.post(url, data, {observe: 'response'}).subscribe((res:Response) => {});
Ie. what you were doing was just type casting the data your server sent as <Response>
.
Just import Response from `@angular/http` or `@angular/common/http`
reference official doc : https://angular.io/guide/http
https://alligator.io/angular/angular-5/
https://blog.angular.io/version-5-0-0-of-angular-now-available-37e414935ced