httr: Tools for Working with URLs and HTTP

Useful tools for working with HTTP organised by HTTP verbs (GET(), POST(), etc). Configuration functions make it easy to control additional request components (authenticate(), add_headers() and so on).

Author
Hadley Wickham [aut, cre], RStudio [cph]
Date of publication
2016-07-03 22:33:34
Maintainer
Hadley Wickham <hadley@rstudio.com>
License
MIT + file LICENSE
Version
1.2.1
URLs

View on CRAN

Man pages

add_headers
Add additional headers to a request.
authenticate
Use http authentication.
BROWSE
Open specified url in browser.
cache_info
Compute caching information for a response.
config
Set curl options.
content
Extract content from a request.
content_type
Set content-type and accept headers.
cookies
Access cookies in a response.
DELETE
Send a DELETE request.
GET
GET a url.
guess_media
Guess the media type of a path from its extension.
handle
Create a handle tied to a particular host.
handle_pool
Maintain a pool of handles.
has_content
Does the request have content associated with it?
HEAD
Get url HEADers.
headers
Extract the headers from a response
hmac_sha1
HMAC SHA1
http_condition
Generate a classed http condition.
http_error
Check for an http error.
http_status
Give information on the status of a request.
http_type
Extract the content type of a response
httr
'httr' makes http easy.
httr_dr
Diagnose common configuration problems
httr_options
List available options.
init_oauth1.0
Retrieve OAuth 1.0 access token.
init_oauth2.0
Retrieve OAuth 2.0 access token.
insensitive
Create a vector with case insensitive name matching.
jwt_signature
Generate a JWT signature given credentials.
modify_url
Modify a url.
oauth1.0_token
Generate an oauth1.0 token.
oauth2.0_token
Generate an oauth2.0 token.
oauth_app
Create an OAuth application.
oauth_callback
The oauth callback url.
oauth_endpoint
Describe an OAuth endpoint.
oauth_endpoints
Popular oauth endpoints.
oauth_exchanger
Walk the user through the OAuth2 dance without a local...
oauth_listener
Create a webserver to listen for OAuth callback.
oauth_service_token
Generate OAuth token for service accounts.
oauth_signature
Generate oauth signature.
parse_http_date
Parse and print http dates.
parse_media
Parse a media type.
parse_url
Parse and build urls according to RFC1808.
PATCH
Send PATCH request to a server.
POST
POST file to a server.
progress
Add a progress bar.
PUT
Send PUT request to server.
response
The response object.
RETRY
Retry a request until it succeeds.
revoke_all
Revoke all OAuth tokens in the cache.
safe_callback
Generate a safe R callback.
set_config
Set (and reset) global httr configuration.
set_cookies
Set cookies.
sha1_hash
SHA1 hash
sign_oauth
Sign an OAuth request
status_code
Extract status code from response.
stop_for_status
Take action on http error.
timeout
Set maximum request time.
Token-class
OAuth token objects.
upload_file
Upload a file with 'POST' or 'PUT'.
use_proxy
Use a proxy to connect to the internet.
user_agent
Set user agent.
VERB
VERB a url.
verbose
Give verbose output.
with_config
Execute code with configuration set.
write_disk
Control where the response body is written.
write_function
S3 object to define response writer.
write_stream
Process output in a streaming manner.

Files in this package

httr
httr/inst
httr/inst/doc
httr/inst/doc/quickstart.Rmd
httr/inst/doc/quickstart.R
httr/inst/doc/api-packages.Rmd
httr/inst/doc/quickstart.html
httr/inst/doc/api-packages.R
httr/inst/doc/api-packages.html
httr/tests
httr/tests/testthat.R
httr/tests/testthat
httr/tests/testthat/test-encoding.R
httr/tests/testthat/test-http-condition.R
httr/tests/testthat/test-oauth.R
httr/tests/testthat/test-parse_media.R
httr/tests/testthat/test-content.R
httr/tests/testthat/test-request.r
httr/tests/testthat/test-response.r
httr/tests/testthat/test-header.r
httr/tests/testthat/test-oauth-cache.R
httr/tests/testthat/test-http-error.R
httr/tests/testthat/test-ssl.R
httr/tests/testthat/data.txt
httr/tests/testthat/test-oauth-server-side.R
httr/tests/testthat/test-body.r
httr/tests/testthat/test-url.r
httr/tests/testthat/test-config.r
httr/NAMESPACE
httr/demo
httr/demo/oauth2-facebook.r
httr/demo/oauth2-reddit.R
httr/demo/oauth1-vimeo.r
httr/demo/oauth1-twitter.r
httr/demo/service-account.R
httr/demo/oauth1-withings.r
httr/demo/oauth2-azure.r
httr/demo/oauth2-github.r
httr/demo/00Index
httr/demo/oauth1-yahoo.r
httr/demo/oauth2-google.r
httr/demo/connection-sharing.r
httr/demo/oauth2-linkedin.r
httr/NEWS.md
httr/R
httr/R/envvar.R
httr/R/response-type.R
httr/R/request.R
httr/R/http-get.r
httr/R/insensitive.r
httr/R/oauth-endpoint.r
httr/R/http-head.r
httr/R/doctor.R
httr/R/http-delete.r
httr/R/oauth-init.R
httr/R/safe-callback.R
httr/R/date.R
httr/R/oauth-app.r
httr/R/response-status.r
httr/R/oauth-server-side.R
httr/R/handle-pool.r
httr/R/write-function.R
httr/R/oauth-listener.r
httr/R/oauth-token.r
httr/R/http-verb.R
httr/R/url.r
httr/R/httr.r
httr/R/http-post.r
httr/R/http-browse.r
httr/R/content-parse.r
httr/R/utils.r
httr/R/oauth-cache.R
httr/R/handle-url.r
httr/R/progress.R
httr/R/timeout.r
httr/R/oauth-exchanger.r
httr/R/body.R
httr/R/http-put.r
httr/R/retry.R
httr/R/content.r
httr/R/http-patch.r
httr/R/proxy.r
httr/R/cache.R
httr/R/response.r
httr/R/user-agent.r
httr/R/media-guess.r
httr/R/oauth-error.r
httr/R/url-query.r
httr/R/oauth-signature.r
httr/R/upload-file.r
httr/R/sha1.r
httr/R/handle.r
httr/R/oauth-refresh.R
httr/R/str.R
httr/R/verbose.r
httr/R/oauth-token-utils.R
httr/R/cookies.r
httr/R/config.r
httr/R/authenticate.r
httr/R/zzz.R
httr/R/media-parse.r
httr/R/headers.r
httr/vignettes
httr/vignettes/quickstart.Rmd
httr/vignettes/api-packages.Rmd
httr/README.md
httr/MD5
httr/build
httr/build/vignette.rds
httr/DESCRIPTION
httr/man
httr/man/verbose.Rd
httr/man/stop_for_status.Rd
httr/man/with_config.Rd
httr/man/safe_callback.Rd
httr/man/HEAD.Rd
httr/man/content.Rd
httr/man/progress.Rd
httr/man/set_cookies.Rd
httr/man/set_config.Rd
httr/man/headers.Rd
httr/man/revoke_all.Rd
httr/man/RETRY.Rd
httr/man/http_status.Rd
httr/man/oauth2.0_token.Rd
httr/man/sign_oauth.Rd
httr/man/oauth_callback.Rd
httr/man/httr.Rd
httr/man/write_stream.Rd
httr/man/init_oauth2.0.Rd
httr/man/parse_http_date.Rd
httr/man/write_function.Rd
httr/man/PATCH.Rd
httr/man/POST.Rd
httr/man/authenticate.Rd
httr/man/handle.Rd
httr/man/VERB.Rd
httr/man/modify_url.Rd
httr/man/timeout.Rd
httr/man/sha1_hash.Rd
httr/man/oauth_listener.Rd
httr/man/Token-class.Rd
httr/man/write_disk.Rd
httr/man/httr_dr.Rd
httr/man/PUT.Rd
httr/man/http_type.Rd
httr/man/DELETE.Rd
httr/man/has_content.Rd
httr/man/http_condition.Rd
httr/man/add_headers.Rd
httr/man/content_type.Rd
httr/man/init_oauth1.0.Rd
httr/man/BROWSE.Rd
httr/man/oauth_exchanger.Rd
httr/man/config.Rd
httr/man/hmac_sha1.Rd
httr/man/user_agent.Rd
httr/man/oauth1.0_token.Rd
httr/man/oauth_endpoint.Rd
httr/man/oauth_endpoints.Rd
httr/man/status_code.Rd
httr/man/use_proxy.Rd
httr/man/httr_options.Rd
httr/man/insensitive.Rd
httr/man/oauth_app.Rd
httr/man/oauth_signature.Rd
httr/man/GET.Rd
httr/man/upload_file.Rd
httr/man/parse_media.Rd
httr/man/handle_pool.Rd
httr/man/cookies.Rd
httr/man/guess_media.Rd
httr/man/http_error.Rd
httr/man/jwt_signature.Rd
httr/man/response.Rd
httr/man/oauth_service_token.Rd
httr/man/parse_url.Rd
httr/man/cache_info.Rd
httr/LICENSE