tests/testthat/test-resp-request.R

test_that("can extract request", {
  req <- request_test()
  resp <- req_perform(req)
  expect_equal(resp_request(resp), req)
})
r-lib/httr2 documentation built on Jan. 11, 2025, 10:21 a.m.