Skip to content

Commit 6d32430

Browse files
committed
Deploying to gh-pages from @ 74a3acb 🚀
1 parent 41c7ea3 commit 6d32430

132 files changed

Lines changed: 728 additions & 719 deletions

File tree

Some content is hidden

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

dev/AGENTS.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/LICENSE-text.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/LICENSE.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/httr2.html

Lines changed: 20 additions & 20 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: 19 additions & 19 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:34759/
31+
#> GET http://127.0.0.1:33033/
3232
#> Body: empty
3333
```
3434

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

5252
The first line of the request contains three important pieces of
@@ -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 (`34759`).
63+
(`localhost`), and the port (`33033`).
6464

6565
- The version of the HTTP protocol. This is unimportant for our purposes
6666
because it’s handled at a lower level.
@@ -82,10 +82,10 @@ req |>
8282
#> GET / HTTP/1.1
8383
#> accept: application/json
8484
#> accept-encoding: deflate, gzip, br, zstd
85-
#> host: 127.0.0.1:34759
85+
#> host: 127.0.0.1:33033
8686
#> name: Hadley
8787
#> shoe-size: 11
88-
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
88+
#> user-agent: httr2/1.2.3.9000 r-curl/7.1.0 libcurl/8.5.0
8989
```
9090

9191
Header names are case-insensitive, and servers will ignore headers that
@@ -108,8 +108,8 @@ req |>
108108
#> accept-encoding: deflate, gzip, br, zstd
109109
#> content-length: 15
110110
#> content-type: application/json
111-
#> host: 127.0.0.1:34759
112-
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
111+
#> host: 127.0.0.1:33033
112+
#> user-agent: httr2/1.2.3.9000 r-curl/7.1.0 libcurl/8.5.0
113113
#>
114114
#> {
115115
#> "x": 1,
@@ -146,8 +146,8 @@ 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:34759
150-
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
149+
#> host: 127.0.0.1:33033
150+
#> user-agent: httr2/1.2.3.9000 r-curl/7.1.0 libcurl/8.5.0
151151
#>
152152
#> x=1&y=a
153153
```
@@ -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=------------------------aaS6eXHHgKteVbnYs9zSj9
170-
#> host: 127.0.0.1:34759
171-
#> user-agent: httr2/1.2.2.9000 r-curl/7.1.0 libcurl/8.5.0
169+
#> content-type: multipart/form-data; boundary=------------------------Vvl44SMlVS3Htgy6F5yxeW
170+
#> host: 127.0.0.1:33033
171+
#> user-agent: httr2/1.2.3.9000 r-curl/7.1.0 libcurl/8.5.0
172172
#>
173-
#> --------------------------aaS6eXHHgKteVbnYs9zSj9
173+
#> --------------------------Vvl44SMlVS3Htgy6F5yxeW
174174
#> Content-Disposition: form-data; name="x"
175175
#>
176176
#> 1
177-
#> --------------------------aaS6eXHHgKteVbnYs9zSj9
177+
#> --------------------------Vvl44SMlVS3Htgy6F5yxeW
178178
#> Content-Disposition: form-data; name="y"
179179
#>
180180
#> a
181-
#> --------------------------aaS6eXHHgKteVbnYs9zSj9--
181+
#> --------------------------Vvl44SMlVS3Htgy6F5yxeW--
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:34759/json
200+
#> GET http://127.0.0.1:33033/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: Mon, 22 Jun 2026 22:13:36 GMT
213+
#> Date: Tue, 23 Jun 2026 12:30:34 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: Mon, 22 Jun 2026 22:13:36 GMT
274+
#> Date: Tue, 23 Jun 2026 12:30:34 GMT
275275
#> Content-Type: application/json
276276
#> Content-Length: 407
277277
#> ETag: "de760e6d"

dev/articles/index.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.html

Lines changed: 2 additions & 2 deletions
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("2rgThSgPQueIOHOmdOhJPwfo4uexaw")
220+
#> obfuscated("jEFm6-ls4HmC0MYFial2-Vmh6iaQ6g")
221221
```
222222
223223
Here’s what a complete client specification for GitHub looks like, using

0 commit comments

Comments
 (0)