Skip to content

Commit e63c422

Browse files
committed
Deploying to gh-pages from @ dceef3f 🚀
1 parent bbc4b48 commit e63c422

56 files changed

Lines changed: 307 additions & 287 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

dev/articles/httr2.html

Lines changed: 14 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/httr2.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Every request starts with a URL:
2828
req <- request(example_url())
2929
req
3030
#> <httr2_request>
31-
#> GET http://127.0.0.1:37997/
31+
#> GET http://127.0.0.1:40153/
3232
#> Body: empty
3333
```
3434

@@ -45,7 +45,7 @@ req |> req_dry_run()
4545
#> GET / HTTP/1.1
4646
#> accept: */*
4747
#> accept-encoding: deflate, gzip, br, zstd
48-
#> host: 127.0.0.1:37997
48+
#> host: 127.0.0.1:40153
4949
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
5050
```
5151

@@ -60,7 +60,7 @@ information:
6060

6161
- The **path**, which is the URL stripped of details that the server
6262
already knows, i.e. the protocol (`http` or `https`), the host
63-
(`localhost`), and the port (`37997`).
63+
(`localhost`), and the port (`40153`).
6464

6565
- The version of the HTTP protocol. This is unimportant for our purposes
6666
because it’s handled at a lower level.
@@ -82,7 +82,7 @@ req |>
8282
#> GET / HTTP/1.1
8383
#> accept: application/json
8484
#> accept-encoding: deflate, gzip, br, zstd
85-
#> host: 127.0.0.1:37997
85+
#> host: 127.0.0.1:40153
8686
#> name: Hadley
8787
#> shoe-size: 11
8888
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
@@ -108,7 +108,7 @@ req |>
108108
#> accept-encoding: deflate, gzip, br, zstd
109109
#> content-length: 15
110110
#> content-type: application/json
111-
#> host: 127.0.0.1:37997
111+
#> host: 127.0.0.1:40153
112112
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
113113
#>
114114
#> {
@@ -146,7 +146,7 @@ req |>
146146
#> accept-encoding: deflate, gzip, br, zstd
147147
#> content-length: 7
148148
#> content-type: application/x-www-form-urlencoded
149-
#> host: 127.0.0.1:37997
149+
#> host: 127.0.0.1:40153
150150
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
151151
#>
152152
#> x=1&y=a
@@ -166,19 +166,19 @@ req |>
166166
#> accept: */*
167167
#> accept-encoding: deflate, gzip, br, zstd
168168
#> content-length: 246
169-
#> content-type: multipart/form-data; boundary=------------------------YXhFZCvAEtmJxDJhRMsSFq
170-
#> host: 127.0.0.1:37997
169+
#> content-type: multipart/form-data; boundary=------------------------YZbMVUF4SPXAB0Hpb2jrEf
170+
#> host: 127.0.0.1:40153
171171
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
172172
#>
173-
#> --------------------------YXhFZCvAEtmJxDJhRMsSFq
173+
#> --------------------------YZbMVUF4SPXAB0Hpb2jrEf
174174
#> Content-Disposition: form-data; name="x"
175175
#>
176176
#> 1
177-
#> --------------------------YXhFZCvAEtmJxDJhRMsSFq
177+
#> --------------------------YZbMVUF4SPXAB0Hpb2jrEf
178178
#> Content-Disposition: form-data; name="y"
179179
#>
180180
#> a
181-
#> --------------------------YXhFZCvAEtmJxDJhRMsSFq--
181+
#> --------------------------YZbMVUF4SPXAB0Hpb2jrEf--
182182
```
183183

184184
If you need to send data encoded in a different form, you can use
@@ -197,7 +197,7 @@ req <- request(example_url()) |> req_url_path("/json")
197197
resp <- req |> req_perform()
198198
resp
199199
#> <httr2_response>
200-
#> GET http://127.0.0.1:37997/json
200+
#> GET http://127.0.0.1:40153/json
201201
#> Status: 200 OK
202202
#> Content-Type: application/json
203203
#> Body: In memory (407 bytes)
@@ -210,7 +210,7 @@ You can see a simulation of what httr2 actually received with
210210

211211
resp |> resp_raw()
212212
#> HTTP/1.1 200 OK
213-
#> Date: Sat, 20 Jun 2026 02:13:18 GMT
213+
#> Date: Sat, 20 Jun 2026 02:15:48 GMT
214214
#> Content-Type: application/json
215215
#> Content-Length: 407
216216
#> ETag: "de760e6d"
@@ -271,7 +271,7 @@ You can extract data from the response using the `resp_()` functions:
271271

272272
resp |> resp_headers()
273273
#> <httr2_headers>
274-
#> Date: Sat, 20 Jun 2026 02:13:18 GMT
274+
#> Date: Sat, 20 Jun 2026 02:15:48 GMT
275275
#> Content-Type: application/json
276276
#> Content-Length: 407
277277
#> ETag: "de760e6d"

dev/articles/oauth.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dev/articles/oauth.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ your client specification.
217217
``` r
218218
219219
obfuscate("secret")
220-
#> obfuscated("ghJUb4J4PxG6ovggq1wiNFFUTAgFnw")
220+
#> obfuscated("Cq_10wPzS64Qd4krG-hj2DDp-WeuiA")
221221
```
222222
223223
Here’s what a complete client specification for GitHub looks like, using

0 commit comments

Comments
 (0)