mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 12:19:12 +00:00
refactor: remove cli::resources::Resource (#3285)
This commit is contained in:
parent
415d4c2e52
commit
25c276055b
11 changed files with 219 additions and 301 deletions
|
@ -62,10 +62,10 @@ pub fn op_fetch(
|
|||
}
|
||||
|
||||
let body = res.into_body();
|
||||
let body_resource = resources::add_reqwest_body(body);
|
||||
let rid = resources::add_reqwest_body(body);
|
||||
|
||||
let json_res = json!({
|
||||
"bodyRid": body_resource.rid,
|
||||
"bodyRid": rid,
|
||||
"status": status.as_u16(),
|
||||
"statusText": status.canonical_reason().unwrap_or(""),
|
||||
"headers": res_headers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue