fn fill_headers_with_metadata(r: Root<Dom<Response>>, m: Metadata)