httr_progress {waiter}R Documentation

Waitress with httr

Description

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

Usage

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

## 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)


[Package waiter version 0.2.5 Index]