Answer the question
In order to leave comments, you need to log in
How to get header from http get request?
There is a method:
get(id: number): Promise<HttpResponse<any>> {
return this.http
.get<HttpResponse<any>>(`${this.baseUrl}/read/${id}`, { observe: 'response' })
.toPromise();
}
const response = await this.applicationBuildingsService.get(building.buildid);
console.log(response.headers.get('ts'));
ts: 2020.10.02.12.48.57
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question