tests/testthat/test-resp-timing.R

test_that("can extract request timing", {
  req <- response(timing = c(total = 1))
  expect_equal(resp_timing(req), c(total = 1))
})

Try the httr2 package in your browser

Any scripts or data that you put into this service are public.

httr2 documentation built on Aug. 8, 2025, 7:52 p.m.