gorr__get_response_body: Get response body, fail with an error if it has one

View source: R/gor_query.R

gorr__get_response_bodyR Documentation

Get response body, fail with an error if it has one

Description

Get response body, fail with an error if it has one

Usage

gorr__get_response_body(
  response,
  content.fun = purrr::partial(httr::content, encoding = "UTF-8", show_col_types = FALSE)
)

Arguments

response

from e.g. POST, GET, DELETE

content.fun

content function used to extract content from the response, e.g. text_content

Value

response body from (content)


wuxi-nextcode/gorr documentation built on Jan. 1, 2023, 7:54 a.m.