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().
Arguments
- resp
(
httr2_response) A singlehttr2::response()object (as returned byhttr2::req_perform()).