Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/httrPublic

httr: a friendly http package for R

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md
NotificationsYou must be signed in to change notification settings

r-lib/httr

Status

Lifecycle: superseded

httr is superseded: only changes necessary to keep it on CRAN will be made. We recommend usinghttr2 instead.


CRAN statusR-CMD-checkCodecov test coverage

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

Key features:

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

  • Automatic connection sharing across requests to the same website (bydefault, curl handles are managed automatically), cookies are maintainedacross 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 withcontent() 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 withstop_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 withoauth1.0_token() andoauth2.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 ofcurl andlibcurl. Thanks! httr is inspired by http libraries in other languages, such asResty,Requests andhttparty.

Installation

To get the current released version from CRAN:

install.packages("httr")

To get the current development version from github:

# install.packages("pak")pak::pak("r-lib/httr")

Code of Conduct

Please note that the httr project is released with aContributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

httr: a friendly http package for R

Topics

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Code of conduct

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors68

Languages


[8]ページ先頭

©2009-2025 Movatter.jp