multiple: parse multiple sets of headers separated by a blank line. See details.
Details
The parse_headers_list function parses the headers into a normalized (lowercase field names, trimmed whitespace) named list.
If a request has followed redirects, the data can contain multiple sets of headers. When multiple = TRUE, the function returns a list with the response headers for each request. By default it only returns the headers of the final request.
Examples
req <- curl_fetch_memory("https://hb.cran.dev/redirect/3")parse_headers(req$headers)parse_headers(req$headers, multiple =TRUE)# Parse into named listparse_headers_list(req$headers)