Learn R Programming

⚠️There's a newer version (1.4.7) of this package.Take me there.

httr (version 0.6.0)

Tools for Working with URLs and HTTP

Description

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

Copy Link

Version

Install

install.packages('httr')

Monthly Downloads

815,781

Version

0.6.0

License

MIT + file LICENSE

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

December 13th, 2014

Functions in httr (0.6.0)

DELETE

Send a DELETE request.
url_ok

Check for an http OK status.
use_proxy

Use a proxy to connect to the internet.
modify_url

Modify a url.
POST

POST file to a server.
sign_oauth

Sign an OAuth request
PATCH

Send PATCH request to a server.
init_oauth1.0

Retrieve OAuth 1.0 access token.
set_cookies

Set cookies.
content_type

Set content-type and accept headers.
oauth1.0_token

Generate an oauth1.0 token.
hmac_sha1

HMAC SHA1
set_config

Set (and reset) global httr configuration.
cache_info

Compute caching information for a response.
Token-class

OAuth token objects.
httr

httr makes http easy.
oauth_exchanger

Walk the user through the OAuth2 dance without a local webserver.
config

Set curl options.
init_oauth2.0

Retrieve OAuth 2.0 access token.
oauth_endpoints

Popular oauth endpoints.
oauth_service_token

Generate OAuth token for service accounts.
VERB

VERB a url.
parse_http_date

Parse and print http dates.
parse_media

Parse a media type.
response

The response object.
HEAD

Get url HEADers.
oauth_listener

Create a webserver to listen for OAuth callback.
BROWSE

Open specified url in browser.
brew_dr

Diagnose common configuration problems
status_code

Extract status code from response.
timeout

Set maximum request time.
oauth_endpoint

Describe an OAuth endpoint.
progress

Add a progress bar.
oauth_callback

The oauth callback url.
user_agent

Set user agent.
write_function

S3 object to define respose writer.
GET

GET a url.
write_disk

Control where the response body is written.
http_condition

Generate a classed http condition.
with_config

Execute code with configuration set.
content

Extract content from a request.
guess_media

Guess the media type of a path from its extension.
handle_pool

Maintain a pool of handles.
jwt_signature

Generate a JWT signature given credentials.
http_status

Give information on the status of a request.
http_error

Take action on http error.
cookies

Access cookies in a response.
add_headers

Add additional headers to a request.
safe_callback

Generate a safe R callback.
httr_options

List available options.
write_stream

Process output in a streaming manner.
parse_url

Parse and build urls according to RFC1808.
oauth2.0_token

Generate an oauth2.0 token.
oauth_signature

Generate oauth signature.
handle

Create a handle tied to a particular host.
has_content

Does the request have content associated with it?
oauth_app

Create an OAuth application.
revoke_all

Revoke all OAuth tokens in the cache.
upload_file

verbose

Give verbose output.
url_success

Check for an http success status.
PUT

Send PUT request to server.
authenticate

Use http authentication.
headers

Extract the headers from a response
insensitive

Create a vector with case insensitive name matching.