Skip to contents

Use the Content-Type header (extracted using httr2::resp_content_type()) of a response to automatically choose and apply a body parser, such as httr2::resp_body_json() or resp_body_csv().

Usage

resp_body_auto(resp)

Arguments

resp

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

Value

The parsed response body.