Skip to content

Commit

Permalink
minor readme udpate
Browse files Browse the repository at this point in the history
  • Loading branch information
sckott committed Sep 24, 2023
1 parent 8b38d72 commit 5da4d4c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
5 changes: 3 additions & 2 deletions README.Rmd
Original file line number Diff line number Diff line change
Expand Up @@ -245,11 +245,12 @@ now returns mocked response
```{r eval=FALSE}
req <- request("https://hb.opencpu.org/get")
res <- req_perform(req)
res
res$status_code
#> [1] 418
res$headers
#> $im_a
#> [1] "teapot"
#> <httr2_headers/list>
#> im_a: teapot
```

## Writing to disk
Expand Down
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ x$get('get')
#> <crul response>
#> url: https://httpbin.org/get
#> request_headers:
#> User-Agent: libcurl/7.87.0 r-curl/5.0.0 crul/1.4.0
#> User-Agent: libcurl/8.1.2 r-curl/4.3.2 crul/1.4.0
#> Accept-Encoding: gzip, deflate
#> Accept: application/json, text/xml, application/xml, */*
#> response_headers:
Expand Down Expand Up @@ -244,7 +244,7 @@ x$get('get', query = list(hello = "world"))
#> <crul response>
#> url: https://httpbin.org/get
#> request_headers:
#> User-Agent: libcurl/7.87.0 r-curl/5.0.0 crul/1.4.0
#> User-Agent: libcurl/8.1.2 r-curl/4.3.2 crul/1.4.0
#> Accept-Encoding: gzip, deflate
#> Accept: application/json, text/xml, application/xml, */*
#> response_headers:
Expand Down Expand Up @@ -286,7 +286,7 @@ x$get('get', query = list(hello = "world"))
#> <crul response>
#> url: https://httpbin.org/get
#> request_headers:
#> User-Agent: libcurl/7.87.0 r-curl/5.0.0 crul/1.4.0
#> User-Agent: libcurl/8.1.2 r-curl/4.3.2 crul/1.4.0
#> Accept-Encoding: gzip, deflate
#> Accept: application/json, text/xml, application/xml, */*
#> response_headers:
Expand Down Expand Up @@ -466,11 +466,12 @@ now returns mocked response
```r
req <- request("https://hb.opencpu.org/get")
res <- req_perform(req)
res
res$status_code
#> [1] 418
res$headers
#> $im_a
#> [1] "teapot"
#> <httr2_headers/list>
#> im_a: teapot
```

## Writing to disk
Expand Down

0 comments on commit 5da4d4c

Please sign in to comment.