File: resp_request.Rd

package info (click to toggle)
r-cran-httr2 1.2.2-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 1,684 kB
  • sloc: sh: 13; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 566 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/resp-request.R
\name{resp_request}
\alias{resp_request}
\title{Find the request responsible for a response}
\usage{
resp_request(resp)
}
\arguments{
\item{resp}{A httr2 \link{response} object, created by \code{\link[=req_perform]{req_perform()}}.}
}
\description{
To make debugging easier, httr2 includes the request that was used to
generate every response. You can use this function to access it.
}
\examples{
req <- request(example_url())
resp <- req_perform(req)
resp_request(resp)
}