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

AuthorHadley Wickham [aut, cre], RStudio [cph]
Date of publication2016-07-03 22:33:34
MaintainerHadley Wickham <hadley@rstudio.com>
LicenseMIT + file LICENSE
Version1.2.1
https://github.com/hadley/httr

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.

Functions

accept Man page
accept_json Man page
accept_xml Man page
add_headers Man page
authenticate Man page
BROWSE Man page
build_url Man page
cache_info Man page
config Man page
content Man page
content_type Man page
content_type_json Man page
content_type_xml Man page
cookies Man page
curl_docs Man page
DELETE Man page
GET Man page
guess_media Man page
handle Man page
handle_find Man page
handle_pool Man page
handle_reset Man page
has_content Man page
HEAD Man page
headers Man page
hmac_sha1 Man page
http_condition Man page
http_date Man page
http_error Man page
http_status Man page
http_type Man page
httr Man page
httr_dr Man page
httr_options Man page
httr-package Man page
init_oauth1.0 Man page
init_oauth2.0 Man page
insensitive Man page
jwt_signature Man page
message_for_status Man page
modify_url Man page
oauth1.0_token Man page
oauth2.0_token Man page
oauth_app Man page
oauth_callback Man page
oauth_endpoint Man page
oauth_endpoints Man page
oauth_exchanger Man page
oauth_header Man page
oauth_listener Man page
oauth_service_token Man page
oauth_signature Man page
parsed_content Man page
parse_http_date Man page
parse_media Man page
parse_url Man page
PATCH Man page
POST Man page
progress Man page
PUT Man page
rerequest Man page
reset_config Man page
response Man page
RETRY Man page
revoke_all Man page
safe_callback Man page
set_config Man page
set_cookies Man page
sha1_hash Man page
sign_oauth Man page
sign_oauth1.0 Man page
sign_oauth2.0 Man page
status_code Man page
stop_for_status Man page
text_content Man page
timeout Man page
Token Man page
Token1.0 Man page
Token2.0 Man page
Token-class Man page
TokenServiceAccount Man page
upload_file Man page
url_ok Man page
url_success Man page
use_proxy Man page
user_agent Man page
VERB Man page
verbose Man page
warn_for_status Man page
with_config Man page
with_verbose Man page
write_disk Man page
write_function Man page
write_memory Man page
write_stream Man page

Files

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

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.