Nothing
#' Construct headers for a HIBP request.
#' [Optional] Change the agent to make the request bespoke to you.
#'
#' @param agent The user agent the API call should run under
#'
#'
#' @return headers
#' @export
#'
#' @examples
#' HIBP_headers()
HIBP_headers <- function(agent = "HIBPwned R pkg") {# nolint
if (is.null(agent)){
agent <- "HIBPwned R pkg"
}
if (length(agent) != 1 | !inherits(agent, "character")){
stop("Problematic agent")
}
list(`api-version` = "2"
, `User-Agent` = agent)
}
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.