httr: Tools for Working with URLs and HTTP
Version 1.2.1

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
URL https://github.com/hadley/httr
Package repositoryView on CRAN
InstallationInstall the latest version of this package by entering the following in R:
install.packages("httr")

Getting started

README.md
Best practices for writing an API package

Popular man pages

authenticate: Use http authentication.
config: Set curl options.
content: Extract content from a request.
content_type: Set content-type and accept headers.
oauth2.0_token: Generate an oauth2.0 token.
timeout: Set maximum request time.
use_proxy: Use a proxy to connect to the internet.
See all...

All man pages Function index File listing

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

BROWSE Man page Source code
DELETE Man page Source code
GET Man page Source code
HEAD Man page Source code
PATCH Man page Source code
POST Man page Source code
PUT Man page Source code
RETRY Man page Source code
Token Man page
Token-class Man page
Token1.0 Man page
Token2.0 Man page
TokenServiceAccount Man page
VERB Man page Source code
accept Man page Source code
accept_json Man page Source code
accept_xml Man page Source code
add_headers Man page Source code
add_line Source code
as.character.form_file Source code
as.character.response Source code
as.request Source code
as.request.NULL Source code
as.request.Token Source code
as.request.list Source code
as.request.request Source code
auth_flags Source code
authenticate Man page Source code
backoff_full_jitter Source code
base64url Source code
body_config Source code
body_raw Source code
build_url Man page Source code
bytes Source code
c.request Source code
c_time Source code
cache_info Man page Source code
cache_token Source code
can_use_cache Source code
can_write Source code
check_encoding Source code
check_for_nss Source code
compact Source code Source code
compose_query Source code
config Man page Source code
content Man page Source code
content_type Man page Source code
content_type_json Man page Source code
content_type_xml Man page Source code
cookies Man page Source code
cookies.handle Source code
cookies.response Source code
create_cache Source code
curl_docs Man page Source code
curl_option_types Source code
default_ua Source code
endpoint Source code
endpoint_validation_url Source code
fetch_cached_token Source code
file_size Source code
find_cert_bundle Source code
get_envvar Source code
get_token_scopes Source code
guess_encoding Source code
guess_media Man page Source code
handle Man page Source code
handle_find Man page Source code
handle_name Source code
handle_pool Man page
handle_reset Man page Source code
handle_url Source code
has_content Man page Source code
has_env_var Source code
has_name Source code
headers Man page Source code
headers.response Source code
hmac_sha1 Man page Source code
http_condition Man page Source code
http_date Man page Source code
http_error Man page Source code
http_error.character Source code
http_error.integer Source code
http_error.response Source code
http_status Man page Source code
http_type Man page Source code
httr Man page
httr-package Man page
httr_dr Man page Source code
httr_options Man page Source code
init_oauth1.0 Man page Source code
init_oauth2.0 Man page Source code
init_oauth_service_account Source code
insensitive Man page Source code
is.cache_info Source code
is.handle Source code
is.oauth_app Source code
is.oauth_endpoint Source code
is.path Source code
is.request Source code
is.response Source code
is.url Source code
is_installed Source code
is_text Source code
jwt_base64 Source code
jwt_claimset Source code
jwt_header Source code
jwt_json Source code
jwt_sign Source code
jwt_signature Man page Source code
keep_last Source code Source code
known_oauth2.0_error Source code
last Source code
length.path Source code
listener_endpoint Source code
load_cache Source code
message_for_status Man page Source code
modify_url Man page Source code
named Source code
named_vector Source code
need_package Source code
nonce Source code
oauth1.0_token Man page Source code
oauth2.0_token Man page Source code
oauth_app Man page Source code
oauth_callback Man page Source code
oauth_encode Source code
oauth_encode1 Source code
oauth_endpoint Man page Source code
oauth_endpoints Man page Source code
oauth_exchanger Man page Source code
oauth_header Man page Source code
oauth_listener Man page Source code
oauth_service_token Man page Source code
oauth_signature Man page Source code
onLoad Source code
parse_auto Source code
parse_cache_control Source code
parse_headers Source code
parse_http_date Man page Source code
parse_http_status Source code
parse_media Man page Source code
parse_query Source code
parse_single_header Source code
parse_text Source code
parse_url Man page Source code
parseability Source code
parsed_content Man page Source code
path Source code
prefix_message Source code
print.cache_info Source code
print.handle Source code
print.oauth_app Source code
print.oauth_endpoint Source code
print.opts_list Source code
print.request Source code
print.response Source code
print.url Source code
progress Man page Source code
progress_bar Source code
ref Source code
refresh_oauth2.0 Source code
release_questions Source code
remove_cached_token Source code
reperform Source code
request Source code
request_build Source code
request_combine Source code
request_default Source code
request_fetch Source code
request_fetch.write_disk Source code
request_fetch.write_memory Source code
request_fetch.write_stream Source code
request_perform Source code
request_prepare Source code
rerequest Man page Source code
reset_config Man page Source code
response Man page Source code
revoke_all Man page Source code
revoke_oauth2.0 Source code
safe_callback Man page Source code
set_config Man page Source code
set_cookies Man page Source code
set_envvar Source code
set_envvar_local Source code
set_envvar_renviron Source code
sha1_hash Man page Source code
should_cache Source code
sign_oauth Man page
sign_oauth1.0 Man page Source code
sign_oauth2.0 Man page Source code
sort_names Source code
status_code Man page Source code
status_code.numeric Source code
status_code.response Source code
stop_for_status Man page Source code
str_detect Source code
str_extract Source code
str_match Source code
str_replace Source code
str_split Source code
str_split_fixed Source code
str_trim Source code
text_content Man page Source code
timeout Man page Source code
timestamp Source code
translate_curl Source code
travis_encrypt Source code
unnamed Source code
upload_file Man page Source code
url_ok Man page Source code
url_success Man page Source code
use_cache Source code
use_proxy Man page Source code
user_agent Man page Source code
validate_oauth2.0 Source code
verbose Man page Source code
warn_for_status Man page Source code
with_config Man page Source code
with_verbose Man page Source code
write_disk Man page Source code
write_function Man page Source code
write_memory Man page Source code
write_stream Man page Source code

Files

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