Skip to content

Commit c5bde20

Browse files
committed
Deploying to gh-pages from @ 7188082 🚀
1 parent b05f70a commit c5bde20

54 files changed

Lines changed: 221 additions & 210 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:45817/
31+
#> GET http://127.0.0.1:44527/
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:45817
48+
#> host: 127.0.0.1:44527
4949
#> user-agent: httr2/1.2.3.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 (`45817`).
63+
(`localhost`), and the port (`44527`).
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:45817
85+
#> host: 127.0.0.1:44527
8686
#> name: Hadley
8787
#> shoe-size: 11
8888
#> user-agent: httr2/1.2.3.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:45817
111+
#> host: 127.0.0.1:44527
112112
#> user-agent: httr2/1.2.3.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:45817
149+
#> host: 127.0.0.1:44527
150150
#> user-agent: httr2/1.2.3.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=------------------------hZxJqKnlaxVnQajDyjlDGr
170-
#> host: 127.0.0.1:45817
169+
#> content-type: multipart/form-data; boundary=------------------------jQS4RAzMwnFwXVWCtcYeXl
170+
#> host: 127.0.0.1:44527
171171
#> user-agent: httr2/1.2.3.9000 r-curl/7.1.0 libcurl/8.5.0
172172
#>
173-
#> --------------------------hZxJqKnlaxVnQajDyjlDGr
173+
#> --------------------------jQS4RAzMwnFwXVWCtcYeXl
174174
#> Content-Disposition: form-data; name="x"
175175
#>
176176
#> 1
177-
#> --------------------------hZxJqKnlaxVnQajDyjlDGr
177+
#> --------------------------jQS4RAzMwnFwXVWCtcYeXl
178178
#> Content-Disposition: form-data; name="y"
179179
#>
180180
#> a
181-
#> --------------------------hZxJqKnlaxVnQajDyjlDGr--
181+
#> --------------------------jQS4RAzMwnFwXVWCtcYeXl--
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:45817/json
200+
#> GET http://127.0.0.1:44527/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, 11 Jul 2026 13:32:35 GMT
213+
#> Date: Sat, 11 Jul 2026 18:55:28 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, 11 Jul 2026 13:32:35 GMT
274+
#> Date: Sat, 11 Jul 2026 18:55:28 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("F56JEIfUi7yunlC0L5ANHGl6VkC-Tg")
220+
#> obfuscated("41i1_5bMZkG34_kMQ9oWtCo7jrIfTw")
221221
```
222222
223223
Here’s what a complete client specification for GitHub looks like, using

dev/articles/wrapping-apis.html

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

dev/articles/wrapping-apis.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ steps to this process:
283283

284284
key <- secret_make_key()
285285
key
286-
#> [1] "Db2B0xJUAcTSQjI1Qhq-aA"
286+
#> [1] "tv06eS2j83bXhj2PM3HT3Q"
287287
```
288288

289289
(Note that
@@ -301,7 +301,7 @@ steps to this process:
301301

302302
secret_scrambled <- secret_encrypt("secret I need to work with an API", key)
303303
secret_scrambled
304-
#> [1] "C897bkRiKYcsP0R8_3E7W-4PJdzE_bQkiRoq9PUajXLnYRl6ZRl0Wm2hRhVsFMPFXg"
304+
#> [1] "spcr8J0Zs_4kDSJEQiaPU3NUobREij0rzQBNFlBa-SmjZFYvSsyW5NBWk79RQWa9Bw"
305305
```
306306

307307
3. When needed, you descramble the secret using
@@ -340,7 +340,7 @@ usage.
340340

341341
secret_scrambled <- secret_encrypt("secret I need to work with an API", "YOURPACKAGE_KEY")
342342
secret_scrambled
343-
#> [1] "c1dylXSpwDWoD8Q7EQbKKQ9TvPl2abChs3DWzpLBACcmmgkD3Hlz45_9CV4BWuk4tA"
343+
#> [1] "65SiHEOXzgg2feop8XasSelaVS5JmGTaDaQGMuQJVxZBG7cKC2hHxnspxUFnv93FBw"
344344
secret_decrypt(secret_scrambled, "YOURPACKAGE_KEY")
345345
#> [1] "secret I need to work with an API"
346346
```

0 commit comments

Comments
 (0)