httr 1.2.1

Tools for Working with URLs and HTTP

Homepage: https://github.com/hadley/httr

Platform: CRAN

Language: R

License: MIT

View on registry: https://cran.r-project.org/package=httr

Documentation: http://cran.r-project.org/web/packages/httr/httr.pdf

Direct download link: https://cran.r-project.org/src/contrib/httr_1.2.1.tar.gz


httr

Build Status Coverage Status CRAN_Status_Badge

The aim of httr is to provide a wrapper for the curl package, customised to the demands of modern web APIs.

Key features:

  • Functions for the most important http verbs: GET(), HEAD(), PATCH(), PUT(), DELETE() and POST().

  • Automatic connection sharing across requests to the same website (by default, curl handles are managed automatically), cookies are maintained across requests, and a up-to-date root-level SSL certificate store is used.

  • Requests return a standard reponse object that captures the http status line, headers and body, along with other useful information.

    • Response content is available with content() as a raw vector (as = "raw"), a character vector (as = "text"), or parsed into an R object (as = "parsed"), currently for html, xml, json, png and jpeg.

    • You can convert http errors into R errors with stop_for_status().

  • Config functions make it easier to modify the request in common ways: set_cookies(), add_headers(), authenticate(), use_proxy(), verbose(), timeout(), content_type(), accept(), progress().

  • Support for OAuth 1.0 and 2.0 with oauth1.0_token() and oauth2.0_token(). The demo directory has eight OAuth demos: four for 1.0 (twitter, vimeo, withings and yahoo) and four for 2.0 (facebook, github, google, linkedin). OAuth credentials are automatically cached within a project.

httr wouldn't be possible without the hard work of the authors of curl and libcurl. Thanks! httr is inspired by http libraries in other languages, such as Resty, Requests and httparty.

Installation

To get the current released version from CRAN:

install.packages("httr")

To get the current development version from github:

# install.packages("devtools")
devtools::install_github("hadley/httr")

Imports Dependencies Requirements Latest Stable Latest Release Licenses
curl >= 0.9.1 0.9.7 2.3 MIT
jsonlite * 0.9.22 1.2 MIT
mime * 0.1.2 0.5 GPL-2.0+
openssl >= 0.8 0.9.6 0.9.6 MIT
R6 * 2.2.0 2.2.0 MIT
Explore the resolved imports dependency tree for httr 1.2.1
Suggests Dependencies Requirements Latest Stable Latest Release Licenses
httpuv * 1.3.3 1.3.3 AML
Explore the resolved suggests dependency tree for httr 1.2.1
Depends Dependencies Requirements Latest Stable Latest Release Licenses
R >= 3.0.0
Explore the resolved depends dependency tree for httr 1.2.1

Releases

  • 1.2.1 - July 03, 2016 00:00
  • 1.2.0 - June 15, 2016 00:00
  • 1.1.0 - January 28, 2016 00:00
  • 1.0.0 - June 25, 2015 00:00
  • 0.6.1 - January 01, 2015 00:00
  • 0.6.0 - December 13, 2014 17:57
  • 0.5 - September 02, 2014 18:15
  • 0.4 - July 28, 2014 18:14
  • 0.3 - March 20, 2014 03:03
  • 0.2 - October 11, 2012 07:40
See all 12 releases

Project Statistics

SourceRank 20
Dependencies 0
Dependent projects 296
Dependent repositories 1.05K
Total releases 12
Latest release
First release
Stars 567
Forks 1.58K
Watchers 69
Contributors 38
Repo Size: 1.82 MB

Top Contributors See all

Hadley Wickham nathangoulding Craig Citro Jeroen Ooms Jean-Olivier Irisson Jennifer (Jenny) Bryan Jim Hester grahamrp Artem Klevtsov Carl Boettiger Martin Morgan npjc antoine-lizee Siddhartha Bagaria Charles Hans Thompson Robert Krzyzanowski Gábor Csárdi Willem Paling Kirill Müller i

Something wrong with this page? Make a suggestion

Export .ABOUT file for this library

Last synced: 2016-07-05 06:41:07 UTC