mirror of
https://github.com/rest-client/rest-client.git
synced 2022-11-09 13:49:40 -05:00
Fix typo blok_response
Thanks to @akostadinov for finding it.
This commit is contained in:
parent
9451e89ce0
commit
f6bfd53a9e
1 changed files with 1 additions and 1 deletions
|
@ -271,7 +271,7 @@ Normally, when you use `RestClient.get` or the lower level `RestClient::Request.
|
|||
|
||||
However, if you are retrieving a large amount of data, for example a Docker image, an iso or any other large file, you may want to stream the response directly to disk rather than loading it in memory. If you have a very large file, it may become *impossible* to load it into memory.
|
||||
|
||||
If you want to stream the data from the `GET` to a file as it comes, rather than entirely in memory, you must pass `RestClient::Request.execute` a parameter `blok_response` to which you pass a `block` that streams the request. That block, in turn, will receive the response and the ability to stream directly to file as each chunk comes across.
|
||||
If you want to stream the data from the `GET` to a file as it comes, rather than entirely in memory, you must pass `RestClient::Request.execute` a parameter `block_response` to which you pass a `block` that streams the request. That block, in turn, will receive the response and the ability to stream directly to file as each chunk comes across.
|
||||
|
||||
The following is an example:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue