From 67e560da102916195cd06776d4090b1ec90426a6 Mon Sep 17 00:00:00 2001 From: Alexandru Ungureanu Date: Wed, 26 Feb 2020 13:03:20 +0200 Subject: [PATCH] Added Response header access instructions (#1901) * Added Response header access instructions * Added note about using bracket notation --- README.md | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 589a591..43fdbd6 100755 --- a/README.md +++ b/README.md @@ -426,8 +426,9 @@ The response for a request contains the following information. // `statusText` is the HTTP status message from the server response statusText: 'OK', - // `headers` the headers that the server responded with - // All header names are lower cased + // `headers` the HTTP headers that the server responded with + // All header names are lower cased and can be accessed using the bracket notation. + // Example: `response.headers['content-type']` headers: {}, // `config` is the config that was provided to `axios` for the request