httr_progress: Waitress with httr

Description Usage Arguments Examples

View source: R/httr.R

Description

Use a waitress progress bar with httr requests. Simply use httr_progress where you would use httr::progress.

Usage

1
httr_progress(object, type = c("down", "up"), pre = NULL, post = NULL)

Arguments

object

The waitress or attendant object.

type

Type of progress to display: either number of bytes uploaded or downloaded. Passed to httr::progress.

pre, post

Pre and callback functions to run before the progress starts or once it is done.

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
## Not run: 
cap_speed <- httr::config(max_recv_speed_large = 10000)

httr::GET(
  "http://httpbin.org/bytes/102400", 
  httr_progress(w), 
  cap_speed
)

## End(Not run)

waiter documentation built on Jan. 3, 2022, 5:13 p.m.