Skip to content

Commit

Permalink
Fix location of responseHeaders API doc
Browse files Browse the repository at this point in the history
  • Loading branch information
parlough committed Sep 13, 2024
1 parent d8549a3 commit 5295dcc
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions web/lib/src/helpers/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -105,13 +105,13 @@ extension TouchListConvert on TouchList {
List<Touch> toList() => JSImmutableListWrapper<TouchList, Touch>(this);
}

/// Returns all response headers as a key-value map.
///
/// Multiple values for the same header key can be combined into one,
/// separated by a comma and a space.
///
/// See: http://www.w3.org/TR/XMLHttpRequest/#the-getresponseheader()-method
extension XMLHttpRequestGlue on XMLHttpRequest {
/// Returns all response headers as a key-value map.
///
/// Multiple values for the same header key can be combined into one,
/// separated by a comma and a space.
///
/// See: https://xhr.spec.whatwg.org/#the-getresponseheader()-method
Map<String, String> get responseHeaders {
// from Closure's goog.net.Xhrio.getResponseHeaders.
final headers = <String, String>{};
Expand Down

0 comments on commit 5295dcc

Please sign in to comment.