瀏覽代碼
forgot to document a new parameter
master
沒有發現已知的金鑰在資料庫的簽署中
GPG 金鑰 ID: 2A514A4997464560
共有
2 個檔案被更改,包括
7 行新增 和
2 行删除
-
R/helpers.r
-
man/get_response_body.Rd
|
|
@ -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")) |
|
|
|
|
|
@ -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 |
|
|
|