tests/testthat/test-http-head.r

context("test-http-head")

test_that("HEAD succeeds regardless of wrapper", {
  skip_httpbin()
  expect_false(http_error(HEAD("https://httpbin.org")))
  expect_false(http_error(VERB("HEAD", "https://httpbin.org")))
  expect_false(http_error(RETRY("HEAD", "https://httpbin.org")))
})
r-lib/httr documentation built on Nov. 5, 2023, 7:26 a.m.