diff --git a/DESCRIPTION b/DESCRIPTION index 6d325d4a..047c950d 100644 --- a/DESCRIPTION +++ b/DESCRIPTION @@ -27,6 +27,6 @@ Suggests: rmarkdown VignetteBuilder: knitr License: MIT + file LICENSE -RoxygenNote: 5.0.1 +RoxygenNote: 6.0.1 URL: https://github.com/r-lib/httr BugReports: https://github.com/r-lib/httr/issues diff --git a/man/BROWSE.Rd b/man/BROWSE.Rd index 642fdeab..2f43e5ef 100644 --- a/man/BROWSE.Rd +++ b/man/BROWSE.Rd @@ -40,4 +40,3 @@ Other http methods: \code{\link{DELETE}}, \code{\link{PATCH}}, \code{\link{POST}}, \code{\link{PUT}}, \code{\link{VERB}} } - diff --git a/man/DELETE.Rd b/man/DELETE.Rd index 2801ac29..67e2a280 100644 --- a/man/DELETE.Rd +++ b/man/DELETE.Rd @@ -79,6 +79,7 @@ If the request passes through a cache and the Request-URI identifies one or more currently cached entities, those entries SHOULD be treated as stale. Responses to this method are not cacheable. } + \examples{ DELETE("http://httpbin.org/delete") POST("http://httpbin.org/delete") @@ -89,4 +90,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{PATCH}}, \code{\link{POST}}, \code{\link{PUT}}, \code{\link{VERB}} } - diff --git a/man/GET.Rd b/man/GET.Rd index 42ce67d2..bd7d9102 100644 --- a/man/GET.Rd +++ b/man/GET.Rd @@ -53,6 +53,7 @@ The partial GET method is intended to reduce unnecessary network usage by allowing partially-retrieved entities to be completed without transferring data already held by the client. } + \examples{ GET("http://google.com/") GET("http://google.com/", path = "search") @@ -79,4 +80,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{PATCH}}, \code{\link{POST}}, \code{\link{PUT}}, \code{\link{VERB}} } - diff --git a/man/HEAD.Rd b/man/HEAD.Rd index 6f42eb9e..e1f9f50e 100644 --- a/man/HEAD.Rd +++ b/man/HEAD.Rd @@ -46,6 +46,7 @@ cached entity differs from the current entity (as would be indicated by a change in Content-Length, Content-MD5, ETag or Last-Modified), then the cache MUST treat the cache entry as stale. } + \examples{ HEAD("http://google.com") headers(HEAD("http://google.com")) @@ -56,4 +57,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{PATCH}}, \code{\link{POST}}, \code{\link{PUT}}, \code{\link{VERB}} } - diff --git a/man/PATCH.Rd b/man/PATCH.Rd index a214b7a2..6f0889d7 100644 --- a/man/PATCH.Rd +++ b/man/PATCH.Rd @@ -64,4 +64,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{HEAD}}, \code{\link{POST}}, \code{\link{PUT}}, \code{\link{VERB}} } - diff --git a/man/POST.Rd b/man/POST.Rd index 32144ff2..8c2a0745 100644 --- a/man/POST.Rd +++ b/man/POST.Rd @@ -76,4 +76,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{HEAD}}, \code{\link{PATCH}}, \code{\link{PUT}}, \code{\link{VERB}} } - diff --git a/man/PUT.Rd b/man/PUT.Rd index f6f2c385..d9ce1654 100644 --- a/man/PUT.Rd +++ b/man/PUT.Rd @@ -74,4 +74,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{HEAD}}, \code{\link{PATCH}}, \code{\link{POST}}, \code{\link{VERB}} } - diff --git a/man/RETRY.Rd b/man/RETRY.Rd index 301b761c..edd9eb4e 100644 --- a/man/RETRY.Rd +++ b/man/RETRY.Rd @@ -86,4 +86,3 @@ RETRY("GET", "http://httpbin.org/status/200") # Never succeeds RETRY("GET", "http://httpbin.org/status/500") } - diff --git a/man/Token-class.Rd b/man/Token-class.Rd index f463c7ae..dde0f458 100644 --- a/man/Token-class.Rd +++ b/man/Token-class.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/oauth-token.r \docType{class} \name{Token-class} -\alias{Token} \alias{Token-class} +\alias{Token} \alias{Token1.0} \alias{Token2.0} \alias{TokenServiceAccount} @@ -54,6 +54,6 @@ The cache file should not be included in source code control or R packages (because it contains private information), so httr will automatically add the appropriate entries to `.gitignore` and `.Rbuildignore` if needed. } + \keyword{datasets} \keyword{internal} - diff --git a/man/VERB.Rd b/man/VERB.Rd index f0ddd81a..22c2325c 100644 --- a/man/VERB.Rd +++ b/man/VERB.Rd @@ -75,4 +75,3 @@ Other http methods: \code{\link{BROWSE}}, \code{\link{HEAD}}, \code{\link{PATCH}}, \code{\link{POST}}, \code{\link{PUT}} } - diff --git a/man/add_headers.Rd b/man/add_headers.Rd index dcae56c6..18870855 100644 --- a/man/add_headers.Rd +++ b/man/add_headers.Rd @@ -38,4 +38,3 @@ Other config: \code{\link{authenticate}}, \code{\link{timeout}}, \code{\link{use_proxy}}, \code{\link{user_agent}}, \code{\link{verbose}} } - diff --git a/man/authenticate.Rd b/man/authenticate.Rd index 29859238..1c907746 100644 --- a/man/authenticate.Rd +++ b/man/authenticate.Rd @@ -30,4 +30,3 @@ Other config: \code{\link{add_headers}}, \code{\link{timeout}}, \code{\link{use_proxy}}, \code{\link{user_agent}}, \code{\link{verbose}} } - diff --git a/man/cache_info.Rd b/man/cache_info.Rd index 160f1cb2..75303ff5 100644 --- a/man/cache_info.Rd +++ b/man/cache_info.Rd @@ -48,4 +48,3 @@ cache_info(r4) rerequest(r4)$date } } - diff --git a/man/config.Rd b/man/config.Rd index 578a79e2..6f083f82 100644 --- a/man/config.Rd +++ b/man/config.Rd @@ -61,4 +61,3 @@ Other config: \code{\link{add_headers}}, Other ways to set configuration: \code{\link{set_config}}, \code{\link{with_config}} } - diff --git a/man/content.Rd b/man/content.Rd index 36c96958..656db4d1 100644 --- a/man/content.Rd +++ b/man/content.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/content.r \name{content} \alias{content} -\alias{parsed_content} \alias{text_content} +\alias{parsed_content} \title{Extract content from a request.} \usage{ content(x, as = NULL, type = NULL, encoding = NULL, ...) @@ -69,6 +69,7 @@ Instead, check the mime-type is what you expect, and then parse yourself. This is safer, as you will fail informatively if the API changes, and you will protect yourself against changes to httr. } + \examples{ r <- POST("http://httpbin.org/post", body = list(a = 1, b = 2)) content(r) # automatically parses JSON @@ -84,4 +85,3 @@ Other response methods: \code{\link{http_error}}, \code{\link{http_status}}, \code{\link{response}}, \code{\link{stop_for_status}} } - diff --git a/man/content_type.Rd b/man/content_type.Rd index 6ec33849..3adacb99 100644 --- a/man/content_type.Rd +++ b/man/content_type.Rd @@ -1,12 +1,12 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/headers.r \name{content_type} -\alias{accept} -\alias{accept_json} -\alias{accept_xml} \alias{content_type} \alias{content_type_json} \alias{content_type_xml} +\alias{accept} +\alias{accept_json} +\alias{accept_xml} \title{Set content-type and accept headers.} \usage{ content_type(type) @@ -44,4 +44,3 @@ GET("http://httpbin.org/headers", content_type_xml()) GET("http://httpbin.org/headers", content_type("text/csv")) GET("http://httpbin.org/headers", content_type(".xml")) } - diff --git a/man/cookies.Rd b/man/cookies.Rd index 91ce6ff5..76008446 100644 --- a/man/cookies.Rd +++ b/man/cookies.Rd @@ -19,4 +19,3 @@ cookies(r) \seealso{ \code{\link{set_cookies}()} to send cookies in request. } - diff --git a/man/get_callback.Rd b/man/get_callback.Rd index a441af1c..9beea84f 100644 --- a/man/get_callback.Rd +++ b/man/get_callback.Rd @@ -84,4 +84,3 @@ grec$date == g3$date set_callback("request", old_req) } } - diff --git a/man/guess_media.Rd b/man/guess_media.Rd index e5938f54..7f67a6f2 100644 --- a/man/guess_media.Rd +++ b/man/guess_media.Rd @@ -13,4 +13,3 @@ guess_media(x) DEPRECATED: please use \code{mime::guess_type} instead. } \keyword{internal} - diff --git a/man/handle.Rd b/man/handle.Rd index 40069565..451930ff 100644 --- a/man/handle.Rd +++ b/man/handle.Rd @@ -45,4 +45,3 @@ GET(handle = h, config = list(timeout(10), add_headers(Accept = ""))) } } - diff --git a/man/handle_pool.Rd b/man/handle_pool.Rd index 510597cb..19850f56 100644 --- a/man/handle_pool.Rd +++ b/man/handle_pool.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/handle-pool.r \docType{data} \name{handle_pool} -\alias{handle_find} \alias{handle_pool} +\alias{handle_find} \alias{handle_reset} \title{Maintain a pool of handles.} \format{An environment.} @@ -21,4 +21,3 @@ automatically reused, and cookies are maintained across requests to a site without user intervention. } \keyword{internal} - diff --git a/man/has_content.Rd b/man/has_content.Rd index babcadf8..639be13e 100644 --- a/man/has_content.Rd +++ b/man/has_content.Rd @@ -14,4 +14,3 @@ has_content(POST("http://httpbin.org/post", body = FALSE)) has_content(HEAD("http://httpbin.org/headers")) } \keyword{internal} - diff --git a/man/headers.Rd b/man/headers.Rd index d7be9f68..456081a9 100644 --- a/man/headers.Rd +++ b/man/headers.Rd @@ -20,4 +20,3 @@ headers(r) \code{\link{add_headers}()} to send additional headers in a request } - diff --git a/man/hmac_sha1.Rd b/man/hmac_sha1.Rd index 32358cca..69cd583e 100644 --- a/man/hmac_sha1.Rd +++ b/man/hmac_sha1.Rd @@ -15,4 +15,3 @@ hmac_sha1(key, string) As described in \url{http://datatracker.ietf.org/doc/rfc2104/}. } \keyword{internal} - diff --git a/man/http_condition.Rd b/man/http_condition.Rd index 4700b811..9aac8dcb 100644 --- a/man/http_condition.Rd +++ b/man/http_condition.Rd @@ -51,4 +51,3 @@ f("http://httpbin.org/status/505") for more details about R's condition handling model } \keyword{internal} - diff --git a/man/http_error.Rd b/man/http_error.Rd index 649d8f6f..83cb69bc 100644 --- a/man/http_error.Rd +++ b/man/http_error.Rd @@ -2,8 +2,8 @@ % Please edit documentation in R/response-status.r \name{http_error} \alias{http_error} -\alias{url_ok} \alias{url_success} +\alias{url_ok} \title{Check for an http error.} \usage{ http_error(x, ...) @@ -40,4 +40,3 @@ Other response methods: \code{\link{content}}, \code{\link{http_status}}, \code{\link{response}}, \code{\link{stop_for_status}} } - diff --git a/man/http_status.Rd b/man/http_status.Rd index 66310c31..6b630899 100644 --- a/man/http_status.Rd +++ b/man/http_status.Rd @@ -47,4 +47,3 @@ Other response methods: \code{\link{content}}, \code{\link{http_error}}, \code{\link{response}}, \code{\link{stop_for_status}} } - diff --git a/man/http_type.Rd b/man/http_type.Rd index 96f5e814..bbfbf1e1 100644 --- a/man/http_type.Rd +++ b/man/http_type.Rd @@ -25,4 +25,3 @@ r2 <- GET("http://httpbin.org/ip") http_type(r2) headers(r2)[["Content-Type"]] } - diff --git a/man/httr.Rd b/man/httr.Rd index e63b018c..de57c713 100644 --- a/man/httr.Rd +++ b/man/httr.Rd @@ -30,4 +30,3 @@ httr supports OAuth 1.0 and 2.0. Use \code{\link{oauth1.0_token}} and requests. The demos directory has six demos of using OAuth: three for 1.0 (linkedin, twitter and vimeo) and three for 2.0 (facebook, github, google). } - diff --git a/man/httr_dr.Rd b/man/httr_dr.Rd index 965c3828..3e4ceb26 100644 --- a/man/httr_dr.Rd +++ b/man/httr_dr.Rd @@ -9,4 +9,3 @@ httr_dr() \description{ Currently one check: that curl uses nss. } - diff --git a/man/httr_options.Rd b/man/httr_options.Rd index a64998ee..220c3e10 100644 --- a/man/httr_options.Rd +++ b/man/httr_options.Rd @@ -1,8 +1,8 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/config.r \name{httr_options} -\alias{curl_docs} \alias{httr_options} +\alias{curl_docs} \title{List available options.} \usage{ httr_options(matches) @@ -42,4 +42,3 @@ httr_options("post") curl_docs("userpwd") curl_docs("CURLOPT_USERPWD") } - diff --git a/man/init_oauth1.0.Rd b/man/init_oauth1.0.Rd index 5847eff4..74fc9a97 100644 --- a/man/init_oauth1.0.Rd +++ b/man/init_oauth1.0.Rd @@ -24,4 +24,3 @@ Used for signed OAuth 1.0.} See demos for use. } \keyword{internal} - diff --git a/man/init_oauth2.0.Rd b/man/init_oauth2.0.Rd index c08cadd1..d1cd0805 100644 --- a/man/init_oauth2.0.Rd +++ b/man/init_oauth2.0.Rd @@ -38,4 +38,3 @@ app key and secret in the request body.} See demos for use. } \keyword{internal} - diff --git a/man/insensitive.Rd b/man/insensitive.Rd index 17490b35..833bc0c1 100644 --- a/man/insensitive.Rd +++ b/man/insensitive.Rd @@ -20,4 +20,3 @@ y["ABC"] y[["ABC"]] } \keyword{internal} - diff --git a/man/jwt_signature.Rd b/man/jwt_signature.Rd index fc15c13f..8d769e16 100644 --- a/man/jwt_signature.Rd +++ b/man/jwt_signature.Rd @@ -25,4 +25,3 @@ jwt_signature(cred, "https://www.googleapis.com/auth/userinfo.profile") } } \keyword{internal} - diff --git a/man/modify_url.Rd b/man/modify_url.Rd index 9102f8ed..918b5aa1 100644 --- a/man/modify_url.Rd +++ b/man/modify_url.Rd @@ -17,4 +17,3 @@ modify_url(url, scheme = NULL, hostname = NULL, port = NULL, Modify a url by first parsing it and then replacing components with the non-NULL arguments of this function. } - diff --git a/man/oauth1.0_token.Rd b/man/oauth1.0_token.Rd index a5d4d284..6e00fa2f 100644 --- a/man/oauth1.0_token.Rd +++ b/man/oauth1.0_token.Rd @@ -42,4 +42,3 @@ Other OAuth: \code{\link{oauth2.0_token}}, \code{\link{oauth_app}}, \code{\link{oauth_endpoint}}, \code{\link{oauth_service_token}} } - diff --git a/man/oauth2.0_token.Rd b/man/oauth2.0_token.Rd index a051a386..2a8ff145 100644 --- a/man/oauth2.0_token.Rd +++ b/man/oauth2.0_token.Rd @@ -60,4 +60,3 @@ Other OAuth: \code{\link{oauth1.0_token}}, \code{\link{oauth_app}}, \code{\link{oauth_endpoint}}, \code{\link{oauth_service_token}} } - diff --git a/man/oauth_app.Rd b/man/oauth_app.Rd index a49479fa..ad7819af 100644 --- a/man/oauth_app.Rd +++ b/man/oauth_app.Rd @@ -44,4 +44,3 @@ Other OAuth: \code{\link{oauth1.0_token}}, \code{\link{oauth_endpoint}}, \code{\link{oauth_service_token}} } - diff --git a/man/oauth_callback.Rd b/man/oauth_callback.Rd index 6281c61a..54e131cd 100644 --- a/man/oauth_callback.Rd +++ b/man/oauth_callback.Rd @@ -11,4 +11,3 @@ The url that \code{\link{oauth_listener}} expects that the client be referred to. } \keyword{internal} - diff --git a/man/oauth_endpoint.Rd b/man/oauth_endpoint.Rd index 3366e2f4..5056ee17 100644 --- a/man/oauth_endpoint.Rd +++ b/man/oauth_endpoint.Rd @@ -39,4 +39,3 @@ Other OAuth: \code{\link{oauth1.0_token}}, \code{\link{oauth2.0_token}}, \code{\link{oauth_app}}, \code{\link{oauth_service_token}} } - diff --git a/man/oauth_endpoints.Rd b/man/oauth_endpoints.Rd index 00c4a209..3450ed26 100644 --- a/man/oauth_endpoints.Rd +++ b/man/oauth_endpoints.Rd @@ -16,4 +16,3 @@ Provides some common OAuth endpoints. \examples{ oauth_endpoints("twitter") } - diff --git a/man/oauth_exchanger.Rd b/man/oauth_exchanger.Rd index 56fbe379..6279a73d 100644 --- a/man/oauth_exchanger.Rd +++ b/man/oauth_exchanger.Rd @@ -21,4 +21,3 @@ when behind a firewall). This function should generally not be called directly by the user. } \keyword{internal} - diff --git a/man/oauth_listener.Rd b/man/oauth_listener.Rd index 65dd73d6..7a82958c 100644 --- a/man/oauth_listener.Rd +++ b/man/oauth_listener.Rd @@ -26,4 +26,3 @@ and \code{\link{oauth2.0_token}} for examples of both techniques. This function should not normally be called directly by the user. } \keyword{internal} - diff --git a/man/oauth_service_token.Rd b/man/oauth_service_token.Rd index fb271105..825c48f4 100644 --- a/man/oauth_service_token.Rd +++ b/man/oauth_service_token.Rd @@ -33,4 +33,3 @@ Other OAuth: \code{\link{oauth1.0_token}}, \code{\link{oauth2.0_token}}, \code{\link{oauth_app}}, \code{\link{oauth_endpoint}} } - diff --git a/man/oauth_signature.Rd b/man/oauth_signature.Rd index 85709539..f083d1d7 100644 --- a/man/oauth_signature.Rd +++ b/man/oauth_signature.Rd @@ -1,8 +1,8 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/oauth-signature.r \name{oauth_signature} -\alias{oauth_header} \alias{oauth_signature} +\alias{oauth_header} \title{Generate oauth signature.} \usage{ oauth_signature(url, method = "GET", app, token = NULL, @@ -28,4 +28,3 @@ For advanced use only. Occassionally needed for sites that use some components of the OAuth spec, but not all of them (e.g. 2-legged oauth) } \keyword{internal} - diff --git a/man/parse_http_date.Rd b/man/parse_http_date.Rd index d970fc5e..c5bf5c6e 100644 --- a/man/parse_http_date.Rd +++ b/man/parse_http_date.Rd @@ -1,8 +1,8 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/date.R \name{parse_http_date} -\alias{http_date} \alias{parse_http_date} +\alias{http_date} \title{Parse and print http dates.} \usage{ parse_http_date(x, failure = NA) @@ -37,4 +37,3 @@ parse_http_date("Sun Nov 6 08:49:37 1994") http_date(Sys.time()) } - diff --git a/man/parse_media.Rd b/man/parse_media.Rd index dbfcb16c..b290abd9 100644 --- a/man/parse_media.Rd +++ b/man/parse_media.Rd @@ -31,4 +31,3 @@ parse_media("text/plain; charset=\\"utf-8\\"") parse_media("text/plain; randomparam=\\";=;=\\"") } \keyword{internal} - diff --git a/man/parse_url.Rd b/man/parse_url.Rd index f815054d..1a5cadad 100644 --- a/man/parse_url.Rd +++ b/man/parse_url.Rd @@ -1,8 +1,8 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/url.r \name{parse_url} -\alias{build_url} \alias{parse_url} +\alias{build_url} \title{Parse and build urls according to RFC1808.} \usage{ parse_url(url) @@ -37,4 +37,3 @@ parse_url("http://google.com:80/?a=1&b=2") build_url(parse_url("http://google.com/")) } - diff --git a/man/progress.Rd b/man/progress.Rd index 7189d3f4..2d03544d 100644 --- a/man/progress.Rd +++ b/man/progress.Rd @@ -24,4 +24,3 @@ x <- GET("http://courses.had.co.nz/12-oscon/slides.zip", progress()) x <- GET("http://httpbin.org/drip?numbytes=4000&duration=3", progress()) } } - diff --git a/man/response.Rd b/man/response.Rd index 336d4b96..96a53b40 100644 --- a/man/response.Rd +++ b/man/response.Rd @@ -26,4 +26,3 @@ Other response methods: \code{\link{content}}, \code{\link{http_error}}, \code{\link{http_status}}, \code{\link{stop_for_status}} } - diff --git a/man/revoke_all.Rd b/man/revoke_all.Rd index 4b773880..117c2b47 100644 --- a/man/revoke_all.Rd +++ b/man/revoke_all.Rd @@ -15,4 +15,3 @@ Use this function if you think that your token may have been compromised, e.g. you accidentally uploaded the cache file to github. It's not possible to automatically revoke all tokens - this function will warn when it can't. } - diff --git a/man/safe_callback.Rd b/man/safe_callback.Rd index 95869d8e..1e26aa5f 100644 --- a/man/safe_callback.Rd +++ b/man/safe_callback.Rd @@ -13,4 +13,3 @@ safe_callback(f) Generate a safe R callback. } \keyword{deprecated} - diff --git a/man/set_config.Rd b/man/set_config.Rd index 0f185cf6..81f0b35c 100644 --- a/man/set_config.Rd +++ b/man/set_config.Rd @@ -1,8 +1,8 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/config.r \name{set_config} -\alias{reset_config} \alias{set_config} +\alias{reset_config} \title{Set (and reset) global httr configuration.} \usage{ set_config(config, override = FALSE) @@ -33,4 +33,3 @@ GET("http://google.com") Other ways to set configuration: \code{\link{config}}, \code{\link{with_config}} } - diff --git a/man/set_cookies.Rd b/man/set_cookies.Rd index f17b05c1..9f7007df 100644 --- a/man/set_cookies.Rd +++ b/man/set_cookies.Rd @@ -29,4 +29,3 @@ Other config: \code{\link{add_headers}}, \code{\link{timeout}}, \code{\link{use_proxy}}, \code{\link{user_agent}}, \code{\link{verbose}} } - diff --git a/man/sha1_hash.Rd b/man/sha1_hash.Rd index a4ebe8d1..8447c11b 100644 --- a/man/sha1_hash.Rd +++ b/man/sha1_hash.Rd @@ -17,4 +17,3 @@ sha1_hash(key, string, method = "HMAC-SHA1") Creates a SHA1 hash of data using either HMAC or RSA. } \keyword{internal} - diff --git a/man/sign_oauth.Rd b/man/sign_oauth.Rd index 3c6d6755..a3c692e8 100644 --- a/man/sign_oauth.Rd +++ b/man/sign_oauth.Rd @@ -16,4 +16,3 @@ Deprecated. Instead create a config object directly using \code{config(token = my_token)}. } \keyword{internal} - diff --git a/man/status_code.Rd b/man/status_code.Rd index b0a68b67..e1b167c5 100644 --- a/man/status_code.Rd +++ b/man/status_code.Rd @@ -12,4 +12,3 @@ status_code(x) \description{ Extract status code from response. } - diff --git a/man/stop_for_status.Rd b/man/stop_for_status.Rd index 2e44c5fb..5ade7662 100644 --- a/man/stop_for_status.Rd +++ b/man/stop_for_status.Rd @@ -1,9 +1,9 @@ % Generated by roxygen2: do not edit by hand % Please edit documentation in R/response-status.r \name{stop_for_status} -\alias{message_for_status} \alias{stop_for_status} \alias{warn_for_status} +\alias{message_for_status} \title{Take action on http error.} \usage{ stop_for_status(x, task = NULL) @@ -60,4 +60,3 @@ Other response methods: \code{\link{content}}, \code{\link{http_error}}, \code{\link{http_status}}, \code{\link{response}} } - diff --git a/man/timeout.Rd b/man/timeout.Rd index aeb5edc9..71360a08 100644 --- a/man/timeout.Rd +++ b/man/timeout.Rd @@ -25,4 +25,3 @@ Other config: \code{\link{add_headers}}, \code{\link{set_cookies}}, \code{\link{use_proxy}}, \code{\link{user_agent}}, \code{\link{verbose}} } - diff --git a/man/upload_file.Rd b/man/upload_file.Rd index f978eac2..925b068a 100644 --- a/man/upload_file.Rd +++ b/man/upload_file.Rd @@ -20,4 +20,3 @@ citation <- upload_file(system.file("CITATION")) POST("http://httpbin.org/post", body = citation) POST("http://httpbin.org/post", body = list(y = citation)) } - diff --git a/man/use_proxy.Rd b/man/use_proxy.Rd index f99f3de1..e89a61c8 100644 --- a/man/use_proxy.Rd +++ b/man/use_proxy.Rd @@ -29,4 +29,3 @@ Other config: \code{\link{add_headers}}, \code{\link{set_cookies}}, \code{\link{timeout}}, \code{\link{user_agent}}, \code{\link{verbose}} } - diff --git a/man/user_agent.Rd b/man/user_agent.Rd index 5e08fcf1..23febf6a 100644 --- a/man/user_agent.Rd +++ b/man/user_agent.Rd @@ -22,4 +22,3 @@ Other config: \code{\link{add_headers}}, \code{\link{set_cookies}}, \code{\link{timeout}}, \code{\link{use_proxy}}, \code{\link{verbose}} } - diff --git a/man/verbose.Rd b/man/verbose.Rd index c93b3483..7fa315d8 100644 --- a/man/verbose.Rd +++ b/man/verbose.Rd @@ -38,6 +38,7 @@ different components of the http messages: \item \code{<*} ssl data received (in) } } + \examples{ GET("http://httpbin.org", verbose()) GET("http://httpbin.org", verbose(info = TRUE)) @@ -69,4 +70,3 @@ Other config: \code{\link{add_headers}}, \code{\link{set_cookies}}, \code{\link{timeout}}, \code{\link{use_proxy}}, \code{\link{user_agent}} } - diff --git a/man/with_config.Rd b/man/with_config.Rd index d15a2cd2..45729bc1 100644 --- a/man/with_config.Rd +++ b/man/with_config.Rd @@ -36,4 +36,3 @@ with_verbose(GET("http://google.com")) Other ways to set configuration: \code{\link{config}}, \code{\link{set_config}} } - diff --git a/man/write_disk.Rd b/man/write_disk.Rd index a7c0f2f6..ddf875e7 100644 --- a/man/write_disk.Rd +++ b/man/write_disk.Rd @@ -34,4 +34,3 @@ GET("http://www2.census.gov/acs2011_5yr/pums/csv_pus.zip", write_disk("csv_pus.zip"), progress()) } } - diff --git a/man/write_function.Rd b/man/write_function.Rd index 2a22395d..08e591bf 100644 --- a/man/write_function.Rd +++ b/man/write_function.Rd @@ -15,4 +15,3 @@ write_function(subclass, ...) This S3 object allows you to control how the response body is saved. } \keyword{internal} - diff --git a/man/write_stream.Rd b/man/write_stream.Rd index 2377a163..4370898c 100644 --- a/man/write_stream.Rd +++ b/man/write_stream.Rd @@ -24,4 +24,3 @@ GET("https://jeroenooms.github.io/data/diamonds.json", }) ) } -