r-lib / httr2

Make HTTP requests and process their responses. A modern reimagining of httr.
https://httr2.r-lib.org
Other
235 stars 56 forks source link

Request: re-export `curl::has_internet()` or add equivalent internet check function #512

Open m-muecke opened 1 month ago

m-muecke commented 1 month ago

For testing and examples it would be great if httr2 had a function for checking internet connection, like testthat::skip_if_offline() or curl::has_internet(). Would it be perhaps possible of re-exporting the curl::has_internet() function?