I make a post request to a server which responds with two headers that are important for the client: username and access-token. The Network Tab of the Chrome debug tool disp
normally the response is just the 'body', while you want the 'headers'. on the res you could use:
this.header = res.headers.get('header-name');