resp_request: Find the request responsible for a response

View source: R/resp-request.R

resp_requestR Documentation

Find the request responsible for a response

Description

To make debugging easier, httr2 includes the request that was used to generate every response. You can use this function to access it.

Usage

resp_request(resp)

Arguments

resp

A httr2 response object, created by req_perform().

Examples

req <- request(example_url())
resp <- req_perform(req)
resp_request(resp)

r-lib/httr2 documentation built on Jan. 11, 2025, 10:21 a.m.