0

My web server send http response with custom header fields if some condition was satisfied.

And I want client to detect this response. So In my thinking,.. I need to capture all response and check the header..

Capturing all response is possible on Javascript?

zeee1
  • 9
  • 5
  • Related to https://stackoverflow.com/questions/220231/accessing-the-web-pages-http-headers-in-javascript – KE LIU Apr 17 '18 at 03:48
  • What do you mean by `capture all responses`? There will always a response for each successful request. – Lewis Apr 17 '18 at 03:55
  • Possible duplicate of [Accessing the web page's HTTP Headers in JavaScript](https://stackoverflow.com/questions/220231/accessing-the-web-pages-http-headers-in-javascript) – colxi Apr 17 '18 at 03:57
  • @Lewis I mean that client need to inspect all responses to find some response containing custom header fields.. And I want to know how can I implement it. – zeee1 Apr 17 '18 at 04:40
  • Then there is no simpler way than catching each individual response returned from server and check for the proper headers. – Lewis Apr 17 '18 at 04:42

0 Answers0