mirror of
https://github.com/lightpanda-io/browser.git
synced 2026-03-31 09:29:42 +00:00
add headerIterator to Http Response
This commit is contained in:
@@ -182,11 +182,10 @@ fn httpHeaderDoneCallback(response: HttpClient.Response) !bool {
|
||||
res._type = .basic;
|
||||
}
|
||||
|
||||
// TODO: Header Iterator
|
||||
// var it = transfer.responseHeaderIterator();
|
||||
// while (it.next()) |hdr| {
|
||||
// try res._headers.append(hdr.name, hdr.value, self._page);
|
||||
// }
|
||||
var it = response.headerIterator();
|
||||
while (it.next()) |hdr| {
|
||||
try res._headers.append(hdr.name, hdr.value, self._page);
|
||||
}
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user