R/process-reponse.R

Defines functions process_response

process_response <- function(res) {

  httr::stop_for_status(res)

  out <- httr::content(res, as = "text", encoding = "UTF-8")
  out <- jsonlite::fromJSON(out)

  out

}
hrbrmstr/sourcehut documentation built on Nov. 4, 2019, 1:46 p.m.