Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make stop_for_status(), etc. pipeable? #278

Closed
ijlyttle opened this issue Sep 19, 2015 · 0 comments
Closed

make stop_for_status(), etc. pipeable? #278

ijlyttle opened this issue Sep 19, 2015 · 0 comments

Comments

@ijlyttle
Copy link

@ijlyttle ijlyttle commented Sep 19, 2015

somewhat related to #277, but different enough.

If a successful call to stop_for_status() returned the response object, could you pipe all the way through? For example:

result <-
  GET(...) %>%
  stop_for_status() %>%
  content(as = "text") %>%
  jsonlite::fromJSON(...)
@hadley hadley closed this in 6f3af0a Dec 17, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant