Sends a HEAD request to the specified URL and retrieves the response headers.
This function is useful for checking the existence of a resource or retrieving metadata without downloading the entire content.
Value
A list containing:
request: Thehttr2::request()response: Thehttr2::response()headers: Thehttr2::resp_headers()from the response
Examples
if (FALSE) { # \dontrun{
url <- "https://www2.census.gov/geo/tiger/GENZ2024/shp/cb_2024_us_state_20m.zip"
head_info <- remote_head(url)
print(head_info$headers)
} # }