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
}
pepfar-datim/datim-validation documentation built on Oct. 17, 2024, 3:45 p.m.