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")))
})

Try the httr package in your browser

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

httr documentation built on Aug. 15, 2023, 9:08 a.m.