http_setopt: Set curl HTTP options in an event loop

View source: R/http.R

http_setoptR Documentation

Set curl HTTP options in an event loop

Description

The event loop must be already running. In other words, you can only call this function from async functions.

Usage

http_setopt(total_con = NULL, host_con = NULL, multiplex = NULL)

Arguments

total_con, host_con, multiplex

They are passed to curl::multi_set(). If an argument is NULL (the default) then it is ignored.

Details

The default values are set when the first deferred HTTP operation of the event loop is created, and they are taken from the async_http_total_con, async_http_host_con and async_http_multiplex options.

See Also

Other asyncronous HTTP calls: http_get(), http_head()


r-lib/async documentation built on March 24, 2024, 6:20 p.m.