Skip to content

Commit

Permalink
add cache slot in httr2 response object
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Nov 18, 2023
1 parent 72bc7a2 commit 43d6f8d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion R/adapter-httr2.R
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ build_httr2_response <- function(req, resp) {
}
},
body = resp$body %||% resp$content,
request = req
request = req,
cache = new.env()
)
structure(lst, class = "httr2_response")
}
Expand Down

0 comments on commit 43d6f8d

Please sign in to comment.