瀏覽代碼

forgot to document a new parameter

master
boB Rudis 3 年之前
父節點
當前提交
78e713ad03
沒有發現已知的金鑰在資料庫的簽署中 GPG 金鑰 ID: 2A514A4997464560
共有 2 個檔案被更改,包括 7 行新增2 行删除
  1. +3
    -1
      R/helpers.r
  2. +4
    -1
      man/get_response_body.Rd

+ 3
- 1
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"))


+ 4
- 1
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


Loading…
取消
儲存