Multiple choice technology

Which method Retrieves the values of all the HTTP headers as a string

  1. getAllResponseHeaders()

  2. getResponseHeader(header)

  3. getResponseHeader(All)

  4. getAllHttpResponseHeaders()

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

getAllResponseHeaders() is the correct XMLHttpRequest method that retrieves all HTTP response headers as a single string. getResponseHeader(header) gets a specific header. Options C and D are non-existent methods.