R/header-utils.R

Defines functions content_type combine_headers

combine_headers <- function(...) {
  httr::add_headers(unlist(rlang::dots_list(...)))
}

content_type <- function(res) {
  res$headers[["content-type"]]
}
nyuglobalties/karpi documentation built on July 8, 2023, 1:38 a.m.