|
377 | 377 | #> < recvAio > |
378 | 378 | #> - $data for message data |
379 | 379 | aio$data |> str() |
380 | | -#> num [1:100000000] -0.784 0.202 -0.454 0.118 -0.613 ... |
| 380 | +#> num [1:100000000] 1.361 -0.547 1.283 -0.905 -1.785 ... |
381 | 381 | ``` |
382 | 382 |
|
383 | 383 | As `call_aio()` is blocking and will wait for completion, an alternative |
@@ -512,11 +512,11 @@ ncurl("http://httpbin.org/headers") |
512 | 512 | #> [1] 7b 0a 20 20 22 68 65 61 64 65 72 73 22 3a 20 7b 0a 20 20 20 20 22 48 6f 73 |
513 | 513 | #> [26] 74 22 3a 20 22 68 74 74 70 62 69 6e 2e 6f 72 67 22 2c 20 0a 20 20 20 20 22 |
514 | 514 | #> [51] 58 2d 41 6d 7a 6e 2d 54 72 61 63 65 2d 49 64 22 3a 20 22 52 6f 6f 74 3d 31 |
515 | | -#> [76] 2d 36 32 34 66 35 38 33 36 2d 34 64 34 39 30 36 32 65 37 37 65 36 36 33 33 |
516 | | -#> [101] 38 37 65 61 65 65 62 63 33 22 0a 20 20 7d 0a 7d 0a |
| 515 | +#> [76] 2d 36 32 35 33 33 33 66 37 2d 31 38 35 39 61 30 31 35 30 30 39 61 38 36 63 |
| 516 | +#> [101] 64 35 37 31 63 38 31 35 35 22 0a 20 20 7d 0a 7d 0a |
517 | 517 | #> |
518 | 518 | #> $data |
519 | | -#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-624f5836-4d49062e77e663387eaeebc3\"\n }\n}\n" |
| 519 | +#> [1] "{\n \"headers\": {\n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-625333f7-1859a015009a86cd571c8155\"\n }\n}\n" |
520 | 520 | ``` |
521 | 521 |
|
522 | 522 | For advanced use, supports additional HTTP methods such as POST or PUT. |
|
531 | 531 | #> - $raw for raw message |
532 | 532 |
|
533 | 533 | call_aio(res)$data |
534 | | -#> [1] "{\n \"args\": {}, \n \"data\": \"{\\\"key\\\": \\\"value\\\"}\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Length\": \"16\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-624f5836-54356c660cdb279152549813\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"78.145.225.121\", \n \"url\": \"http://httpbin.org/post\"\n}\n" |
| 534 | +#> [1] "{\n \"args\": {}, \n \"data\": \"{\\\"key\\\": \\\"value\\\"}\", \n \"files\": {}, \n \"form\": {}, \n \"headers\": {\n \"Authorization\": \"Bearer APIKEY\", \n \"Content-Length\": \"16\", \n \"Content-Type\": \"application/json\", \n \"Host\": \"httpbin.org\", \n \"X-Amzn-Trace-Id\": \"Root=1-625333f8-02809e8e020ccb400cecf3e9\"\n }, \n \"json\": {\n \"key\": \"value\"\n }, \n \"origin\": \"79.173.189.204\", \n \"url\": \"http://httpbin.org/post\"\n}\n" |
535 | 535 | ``` |
536 | 536 |
|
537 | 537 | In this respect, it may be used as a performant and lightweight method |
|
0 commit comments