R/internals.R

Defines functions getHTTPTimeout api_version

Documented in api_version

#' @export
#' @title API Version
#'
#' @description Internal utility function to get the current API version
#' of the DATIM server
#'
#' @return Version of the API.
#'
api_version <- function() "33"


getHTTPTimeout <- function() {
  if (is.numeric(Sys.getenv("HTTP_TIMEOUT"))) {
    return(Sys.getenv("HTTP_TIMEOUT"))
  }
  300L
}
jason-p-pickering/datim-validation documentation built on April 20, 2023, 5:32 a.m.