Package: httr 1.4.7.9000

Hadley Wickham

httr: Tools for Working with URLs and HTTP

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

Authors:Hadley Wickham [aut, cre], Posit Software, PBC [cph, fnd]

httr_1.4.7.9000.tar.gz
httr_1.4.7.9000.zip(r-4.5)httr_1.4.7.9000.zip(r-4.4)httr_1.4.7.9000.zip(r-4.3)
httr_1.4.7.9000.tgz(r-4.4-any)httr_1.4.7.9000.tgz(r-4.3-any)
httr_1.4.7.9000.tar.gz(r-4.5-noble)httr_1.4.7.9000.tar.gz(r-4.4-noble)
httr_1.4.7.9000.tgz(r-4.4-emscripten)httr_1.4.7.9000.tgz(r-4.3-emscripten)
httr.pdf |httr.html
httr/json (API)
NEWS

# Install 'httr' in R:
install.packages('httr', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-lib/httr/issues

Pkgdown:https://httr.r-lib.org

On CRAN:

apicurlhttp

20.49 score 985 stars 4.2k packages 26k scripts 958k downloads 25 mentions 91 exports 7 dependencies

Last updated 1 years agofrom:df11e216f5. Checks:OK: 7. Indexed: yes.

TargetResultDate
Doc / VignettesOKNov 11 2024
R-4.5-winOKNov 11 2024
R-4.5-linuxOKNov 11 2024
R-4.4-winOKNov 11 2024
R-4.4-macOKNov 11 2024
R-4.3-winOKNov 11 2024
R-4.3-macOKNov 11 2024

Exports:acceptaccept_jsonaccept_xmladd_headersauthenticateBROWSEbuild_urlcache_infoconfigcontentcontent_typecontent_type_jsoncontent_type_xmlcookiescurl_docsDELETEGETget_callbackguess_mediahandlehandle_findhandle_resethas_contentHEADheadershmac_sha1http_conditionhttp_datehttp_errorhttp_statushttp_typehttr_drhttr_optionsinit_oauth1.0init_oauth2.0insensitivemessage_for_statusmodify_urloauth_appoauth_callbackoauth_endpointoauth_endpointsoauth_exchangeroauth_headeroauth_listeneroauth_service_tokenoauth_signatureoauth1.0_tokenoauth2.0_access_tokenoauth2.0_authorize_urloauth2.0_tokenparse_http_dateparse_mediaparse_urlparsed_contentPATCHPOSTprogressPUTrerequestreset_configRETRYrevoke_allset_callbackset_configset_cookiessha1_hashsign_oauth1.0sign_oauth2.0status_codestop_for_statustext_contenttimeoutTokenToken1.0Token2.0TokenServiceAccountupload_fileurl_okurl_successuse_proxyuser_agentVERBverbosewarn_for_statuswith_configwith_verbosewrite_diskwrite_functionwrite_memorywrite_stream

Dependencies:askpasscurljsonlitemimeopensslR6sys

Best practices for API packages

Rendered fromapi-packages.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2023-08-08
Started: 2014-04-02

Getting started with httr

Rendered fromquickstart.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2023-08-08
Started: 2014-07-07

Managing secrets

Rendered fromsecrets.Rmdusingknitr::rmarkdownon Nov 11 2024.

Last update: 2021-03-29
Started: 2017-08-01

Readme and manuals

Help Manual

Help pageTopics
Add additional headers to a request.add_headers
Use http authentication.authenticate
Open specified url in browser.BROWSE
Compute caching information for a response.cache_info rerequest
Set curl options.config
Extract content from a request.content parsed_content text_content
Set content-type and accept headers.accept accept_json accept_xml content_type content_type_json content_type_xml
Access cookies in a response.cookies
Send a DELETE request.DELETE
GET a url.GET
Install or uninstall a callback functionget_callback set_callback
Create a handle tied to a particular host.handle
Get url HEADers.HEAD
Extract the headers from a responseheaders
Check for an http error.http_error url_ok url_success
Give information on the status of a request.http_status
Extract the content type of a responsehttp_type
Diagnose common configuration problemshttr_dr
List available options.curl_docs httr_options
Modify a url.modify_url
Create an OAuth application.oauth_app
Describe an OAuth endpoint.oauth_endpoint
Popular oauth endpoints.oauth_endpoints
Generate OAuth token for service accounts.oauth_service_token
Generate an oauth1.0 token.oauth1.0_token
Generate an oauth2.0 token.oauth2.0_token
Parse and print http dates.http_date parse_http_date
Parse and build urls according to RFC3986.build_url parse_url
Send PATCH request to a server.PATCH
POST file to a server.POST
Add a progress bar.progress
Send PUT request to server.PUT
The response object.response
Retry a request until it succeeds.RETRY
Revoke all OAuth tokens in the cache.revoke_all
Set (and reset) global httr configuration.reset_config set_config
Set cookies.set_cookies
Extract status code from response.status_code
Take action on http error.message_for_status stop_for_status warn_for_status
Set maximum request time.timeout
Upload a file with 'POST()' or 'PUT()'.upload_file
Use a proxy to connect to the internet.use_proxy
Set user agent.user_agent
VERB a url.VERB
Give verbose output.verbose
Execute code with configuration set.with_config with_verbose
Control where the response body is written.write_disk write_memory
Process output in a streaming manner.write_stream