httr

httr: a friendly http package for R

  • 所有者: r-lib/httr
  • 平台:
  • 許可證: Other
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

httr

Travis build status
Codecov test coverage
CRAN status

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("r-lib/httr")

主要指標

概覽
名稱與所有者r-lib/httr
主編程語言R
編程語言R (語言數: 1)
平台
許可證Other
所有者活动
創建於2011-11-11 15:05:00
推送於2024-10-11 13:16:06
最后一次提交
發布數22
最新版本名稱v1.4.7 (發布於 )
第一版名稱httr_0.1 (發布於 2012-05-06 10:04:58)
用户参与
星數1k
關注者數57
派生數2k
提交數1.1k
已啟用問題?
問題數523
打開的問題數6
拉請求數141
打開的拉請求數1
關閉的拉請求數92
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?