UPDATE: I think I can close this based on the fact I'm using a proxy here, and wasn't aware this got split out from httr to httr2 in this way: Use a proxy for a request — req_proxy • httr2
I think I can close as self-solved, but will wait a bit and see if anyone has any comments.
This question has been asked in some other forms here, but not answered, specifically:
I want to use httr2 rather than httr now, but need to the equivalent of the following digest authentication in httr2. Please advise.
httr::POST("https://example.com",
httr::authenticate(my_user, my_password,
type = "digest"), httr::add_headers(my_headers),
body = my_request_body)
Fyi ... check_request() isn't exported from {httr2} with my version, but assume it is ok here to use :::
tryCatch({
httr2::request("http://example.com") |>
httr2::check_request()
},
error=function(e) print(glue::glue("{e}")))
#> Error: 'check_request' is not an exported object from 'namespace:httr2'
httr2::request("http://example.com") |>
httr2:::check_request()