async function f() {
const response = await fetch("http://api.quotable.io/random");
for (const [key, value] of response.headers) {
console.log(`${key} = ${value}`);
}
console.log(await response.text());
}
f();
http::header::map::Pos::is_none (/Users/arshia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/map.rs:3164)
http::header::map::Pos::is_some (/Users/arshia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/map.rs:3159)
http::header::map::Pos::resolve (/Users/arshia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/map.rs:3169)
http::header::map::HeaderMap<T>::find (/Users/arshia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/map.rs:1294)
<&http::header::name::HeaderName as http::header::map::as_header_name::Sealed>::find (/Users/arshia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/map.rs:3405)
http::header::map::HeaderMap<T>::get_all (/Users/arshia/.cargo/registry/src/index.crates.io-6f17d22bba15001f/http-0.2.9/src/header/map.rs:757)
runtime::globals::fetch::header::class::Headers::iterator (/Users/arshia/repos/wasmer/spiderfire/runtime/src/globals/fetch/header.rs:268)
runtime::globals::fetch::header::class::iterator::wrapper (/Users/arshia/repos/wasmer/spiderfire/runtime/src/globals/fetch/header.rs:170)
runtime::globals::fetch::header::class::iterator::{{closure}} (/Users/arshia/repos/wasmer/spiderfire/runtime/src/globals/fetch/header.rs:170)
core::ops::function::FnOnce::call_once (@core::ops::function::FnOnce::call_once:7)
<core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once (@<core::panic::unwind_safe::AssertUnwindSafe<F> as core::ops::function::FnOnce<()>>::call_once:13)
std::panicking::try::do_call (@std::panicking::try::do_call:27)
__rust_try (@__rust_try:11)
std::panicking::try (@std::panicking::try:24)
std::panic::catch_unwind (@std::panic::catch_unwind:6)
runtime::globals::fetch::header::class::iterator (/Users/arshia/repos/wasmer/spiderfire/runtime/src/globals/fetch/header.rs:170)
CallJSNative(JSContext*, bool (*)(JSContext*, unsigned int, JS::Value*), js::CallReason, JS::CallArgs const&) (/Users/arshia/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2fa4b2b/mozjs-sys/mozjs/js/src/vm/Interpreter.cpp:486)
js::InternalCallOrConstruct(JSContext*, JS::CallArgs const&, js::MaybeConstruct, js::CallReason) (/Users/arshia/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2fa4b2b/mozjs-sys/mozjs/js/src/vm/Interpreter.cpp:580)
InternalCall(JSContext*, js::AnyInvokeArgs const&, js::CallReason) (/Users/arshia/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2fa4b2b/mozjs-sys/mozjs/js/src/vm/Interpreter.cpp:647)
js::CallFromStack(JSContext*, JS::CallArgs const&, js::CallReason) (/Users/arshia/.cargo/git/checkouts/mozjs-fa11ffc7d4f1cc2d/2fa4b2b/mozjs-sys/mozjs/js/src/vm/Interpreter.cpp:652)