Skip to content

[Deprecated]

Please use req_perform_parallel() instead, and note:

  • cancel_on_error = FALSE is now on_error = "continue"

  • cancel_on_error = TRUE is now on_error = "return"

Usage

multi_req_perform(reqs, paths = NULL, pool = NULL, cancel_on_error = FALSE)

Arguments

reqs

A list of requests.

paths

An optional character vector of paths, if you want to download the request bodies to disk. If supplied, must be the same length as reqs.

pool

Optionally, a curl pool made by curl::new_pool(). Supply this if you want to override the defaults for total concurrent connections (100) or concurrent connections per host (6).

cancel_on_error

Should all pending requests be cancelled when you hit an error? Set this to TRUE to stop all requests as soon as you hit an error. Responses that were never performed be NULL in the result.