Skip to content
This repository has been archived by the owner on May 10, 2022. It is now read-only.

Pass on curl options to http requests? #16

Closed
sckott opened this issue Dec 22, 2015 · 2 comments
Closed

Pass on curl options to http requests? #16

sckott opened this issue Dec 22, 2015 · 2 comments

Comments

@sckott
Copy link

sckott commented Dec 22, 2015

@AugustT curious if you'd be up for allowing users to pass in curl options to functions that make http requests to NBN? e.g, like

foo(config = httr::verbose()) # get verbose curl output
foo(config = httr::progress()) # get curl progress bar

foo <- function(x, ...) {
    GET(url, ...)
}
@AugustT
Copy link

AugustT commented Jan 1, 2016

Certainly happy to allow this if there is a need. Is this as simple as adding the ... in your example?

@sckott
Copy link
Author

sckott commented Jan 1, 2016

yes, just add ... as a parameter, and a parameter def. for it. I usually use @param ... Further named parameters passed on to \code{\link[httr]{GET}}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants