toWebHeaders function

Headers toWebHeaders(
  1. Headers headers
)

Spry headers to web headers object.

Implementation

web.Headers toWebHeaders(Headers headers) {
  final webHeaders = web.Headers();

  for (final (name, value) in headers) {
    webHeaders.append(name, value);
  }

  return webHeaders;
}