toSpryHeaders function
Creates a new Spry Headers for web headers object.
Implementation
Headers toSpryHeaders(web.Headers headers) {
final spryHeaders = Headers();
headers.forEach((value, name, _) {
spryHeaders.add(name, value);
});
for (final value in headers.getSetCookie().toDart) {
spryHeaders.add('set-cookie', value.toDart);
}
return spryHeaders;
}