Skip to contents

Extract tabular data in comma-separated or tab-separated format from a response body.

Usage

resp_body_csv(resp, check_type = TRUE)

resp_body_tsv(resp, check_type = TRUE)

Arguments

resp

(httr2_response) A single httr2::response() object (as returned by httr2::req_perform()).

check_type

(length-1 logical) Whether to check that the response has the expected content type. Set to FALSE if the response is not specifically tagged as the proper type.

Value

The parsed response body as a data frame.