getResponseHeader method
@AvailableInWorkers("window_and_worker_except_service")
The XMLHttpRequest method
getResponseHeader()
returns the string containing the
text of a particular header's value.
If there are multiple response headers
with the same name, then their values are returned as a single
concatenated string,
where each value is separated from the previous one by a pair of comma and
space. The
getResponseHeader()
method returns the value as a UTF byte sequence.
Note: The search for the header name is case-insensitive.
If you need to get the raw string of all of the headers, use the XMLHttpRequest.getAllResponseHeaders method, which returns the entire raw header string.
Implementation
external String? getResponseHeader(String name);