Переглянути джерело

forgot to document a new parameter

master
boB Rudis 7 роки тому
джерело
коміт
78e713ad03
Не вдалося знайти GPG ключ що відповідає даному підпису Ідентифікатор GPG ключа: 2A514A4997464560
  1. 4
      R/helpers.r
  2. 5
      man/get_response_body.Rd

4
R/helpers.r

@ -2,8 +2,10 @@
#'
#' @md
#' @param har_resp_obj HAR response object
#' @param type return type. If `raw` (default) then a raw vector of the content is returned.
#' If `text` then a character vector.
#' @family splash_har_helpers
#' @return A `raw` vector of the content or `NULL`
#' @return A `raw` vector of the content or `NULL` or a `character` if `type` == `text`
#' @export
get_response_body <- function(har_resp_obj, type=c("raw", "text")) {
type <- match.arg(type, c("raw", "text"))

5
man/get_response_body.Rd

@ -8,9 +8,12 @@ get_response_body(har_resp_obj, type = c("raw", "text"))
}
\arguments{
\item{har_resp_obj}{HAR response object}
\item{type}{return type. If \code{raw} (default) then a raw vector of the content is returned.
If \code{text} then a character vector.}
}
\value{
A \code{raw} vector of the content or \code{NULL}
A \code{raw} vector of the content or \code{NULL} or a \code{character} if \code{type} == \code{text}
}
\description{
Retrieve the body content of a HAR entry

Завантаження…
Відмінити
Зберегти