forked from yavin5/angular-async-http
-
Notifications
You must be signed in to change notification settings - Fork 4
Open
Description
Hello,
I have a query, rather than an issue.
Like HttpClient has the option to observe the full response instead of content only.
http .get<MyJsonData>('/data.json', {observe: 'response'}) .subscribe(resp => { // Here, resp is of type HttpResponse<MyJsonData>. // You can inspect its headers: console.log(resp.headers.get('X-Custom-Header')); // And access the body directly, which is typed as MyJsonData as requested. console.log(resp.body.someField); });
Is there an option to read the reponse header using angular-rest-client?
Metadata
Metadata
Assignees
Labels
No labels