@@ -47,7 +47,7 @@ req |> req_headers("Accept" = "application/json")
4747# > <httr2_request>
4848# > GET https://r-project.org
4949# > Headers:
50- # > • Accept: "application/json"
50+ # > * Accept: "application/json"
5151# > Body: empty
5252
5353# Add a body, turning it into a POST
@@ -68,11 +68,11 @@ req |> req_retry(max_tries = 5)
6868# > GET https://r-project.org
6969# > Body: empty
7070# > Policies:
71- # > • retry_max_tries : 5
72- # > • retry_on_failure : FALSE
73- # > • retry_failure_threshold: Inf
74- # > • retry_failure_timeout : 30
75- # > • retry_realm : "r-project.org"
71+ # > * retry_max_tries : 5
72+ # > * retry_on_failure : FALSE
73+ # > * retry_failure_threshold: Inf
74+ # > * retry_failure_timeout : 30
75+ # > * retry_realm : "r-project.org"
7676
7777# Change the HTTP method
7878req | > req_method(" PATCH" )
@@ -89,7 +89,7 @@ req |> req_dry_run()
8989# > accept: */*
9090# > accept-encoding: deflate, gzip
9191# > host: r-project.org
92- # > user-agent: httr2/1.1.2. 9000 r-curl/6.4 .0 libcurl/8.14.1
92+ # > user-agent: httr2/1.2.1. 9000 r-curl/7.0 .0 libcurl/8.14.1
9393```
9494
9595Use ` req_perform() ` to perform the request, retrieving a ** response** :
101101# > GET https://www.r-project.org/
102102# > Status: 200 OK
103103# > Content-Type: text/html
104- # > Body: In memory (6740 bytes)
104+ # > Body: In memory (6238 bytes)
105105```
106106
107107The ` resp_ ` functions help you extract various useful components of the
0 commit comments