Package: httr2 1.0.1.9000

Hadley Wickham

httr2:Perform HTTP Requests and Process the Responses

Tools for creating and modifying HTTP requests, then performing them and processing the results. 'httr2' is a modern re-imagining of 'httr' that uses a pipe-based interface and solves more of the problems that API wrapping packages face.

Authors:Hadley Wickham [aut, cre], RStudio [cph, fnd], Maximilian Girlich [ctb]

httr2_1.0.1.9000.tar.gz
httr2_1.0.1.9000.zip(r-4.5)httr2_1.0.1.9000.zip(r-4.4)httr2_1.0.1.9000.zip(r-4.3)
httr2_1.0.1.9000.tgz(r-4.4-any)httr2_1.0.1.9000.tgz(r-4.3-any)
httr2_1.0.1.9000.tar.gz(r-4.5-noble)httr2_1.0.1.9000.tar.gz(r-4.4-noble)
httr2_1.0.1.9000.tgz(r-4.4-emscripten)httr2_1.0.1.9000.tgz(r-4.3-emscripten)
httr2.pdf |httr2.html
httr2/json (API)
NEWS

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

Peer review:

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

On CRAN:

http

123 exports 224 stars 12.06 score 13 dependencies 803 dependents 264.4k downloads

Last updated 8 hours agofrom:1c83caef8b

Exports:%>%curl_helpcurl_translateexample_github_clientexample_urliterate_with_cursoriterate_with_link_urliterate_with_offsetjwt_claimjwt_encode_hmacjwt_encode_siglast_requestlast_responselocal_mocklocal_mocked_responsesmulti_req_performoauth_cache_pathoauth_clientoauth_client_req_authoauth_client_req_auth_bodyoauth_client_req_auth_headeroauth_client_req_auth_jwt_sigoauth_flow_auth_codeoauth_flow_auth_code_listenoauth_flow_auth_code_parseoauth_flow_auth_code_pkceoauth_flow_auth_code_urloauth_flow_bearer_jwtoauth_flow_client_credentialsoauth_flow_deviceoauth_flow_passwordoauth_flow_refreshoauth_redirect_urioauth_tokenoauth_token_cachedobfuscateobfuscatedreq_auth_basicreq_auth_bearer_tokenreq_body_filereq_body_formreq_body_jsonreq_body_json_modifyreq_body_multipartreq_body_rawreq_cachereq_cookie_preservereq_dry_runreq_errorreq_headersreq_methodreq_oauthreq_oauth_auth_codereq_oauth_bearer_jwtreq_oauth_client_credentialsreq_oauth_devicereq_oauth_passwordreq_oauth_refreshreq_optionsreq_performreq_perform_iterativereq_perform_parallelreq_perform_sequentialreq_perform_streamreq_progressreq_proxyreq_retryreq_streamreq_templatereq_throttlereq_timeoutreq_urlreq_url_pathreq_url_path_appendreq_url_queryreq_user_agentreq_verboserequestresp_body_htmlresp_body_jsonresp_body_rawresp_body_stringresp_body_xmlresp_check_content_typeresp_check_statusresp_content_typeresp_dateresp_encodingresp_has_bodyresp_headerresp_header_existsresp_headersresp_is_errorresp_link_urlresp_rawresp_retry_afterresp_statusresp_status_descresp_urlresp_url_pathresp_url_queriesresp_url_queryresponseresponse_jsonresps_dataresps_failuresresps_requestsresps_successessecret_decryptsecret_decrypt_filesecret_encryptsecret_encrypt_filesecret_has_keysecret_make_keysecret_read_rdssecret_write_rdssignal_total_pagesthrottle_statusurl_buildurl_parsewith_mockwith_mocked_responseswith_verbosity

Dependencies:askpassclicurlgluelifecyclemagrittropensslR6rappdirsrlangsysvctrswithr

httr2

Rendered fromhttr2.Rmdusingknitr::rmarkdownon Jul 05 2024.

Last update: 2023-11-13
Started: 2021-06-12

Readme and manuals

Help Manual

Help pageTopics
Translate curl syntax to httr2curl_help curl_translate
Iteration helpersiterate_with_cursor iterate_with_link_url iterate_with_offset
Retrieve most recent request/responselast_request last_response
httr2 OAuth cache locationoauth_cache_path
Create an OAuth clientoauth_client
OAuth client authenticationoauth_client_req_auth oauth_client_req_auth_body oauth_client_req_auth_header oauth_client_req_auth_jwt_sig
Default redirect url for OAuthoauth_redirect_uri
Create an OAuth tokenoauth_token
Obfuscate mildly secret informationobfuscate obfuscated
Authenticate request with HTTP basic authenticationreq_auth_basic
Authenticate request with bearer tokenreq_auth_bearer_token
Send data in request bodyreq_body_file req_body_form req_body_json req_body_json_modify req_body_multipart req_body_raw
Automatically cache requestsreq_cache
Preserve cookies across requestsreq_cookie_preserve
Perform a dry runreq_dry_run
Control handling of HTTP errorsreq_error
Modify request headersreq_headers
Set HTTP method in requestreq_method
OAuth with authorization codeoauth_flow_auth_code req_oauth_auth_code
OAuth with a bearer JWT (JSON web token)oauth_flow_bearer_jwt req_oauth_bearer_jwt
OAuth with client credentialsoauth_flow_client_credentials req_oauth_client_credentials
OAuth with device flowoauth_flow_device req_oauth_device
OAuth with username and passwordoauth_flow_password req_oauth_password
OAuth with a refresh tokenoauth_flow_refresh req_oauth_refresh
Set arbitrary curl options in requestreq_options
Perform a request to get a responsereq_perform
Perform requests iteratively, generating new requests from previous responsesreq_perform_iterative
Perform a list of requests in parallelreq_perform_parallel
Perform multiple requests in sequencereq_perform_sequential
Perform a request and handle data as it streams backreq_perform_stream req_stream
Add a progress bar to long downloads or uploadsreq_progress
Use a proxy for a requestreq_proxy
Control when a request will retry, and how long it will wait between triesreq_retry
Set request method/path from a templatereq_template
Rate limit a request by automatically adding a delayreq_throttle
Set time limit for a requestreq_timeout
Modify request URLreq_url req_url_path req_url_path_append req_url_query
Set user-agent for a requestreq_user_agent
Show extra output when request is performedreq_verbose
Create a new HTTP requestrequest
Extract body from responseresp_body_html resp_body_json resp_body_raw resp_body_string resp_body_xml resp_has_body
Check the content type of a responseresp_check_content_type
Extract response content type and encodingresp_content_type resp_encoding
Extract request date from responseresp_date
Extract headers from a responseresp_header resp_headers resp_header_exists
Parse link URL from a responseresp_link_url
Show the raw responseresp_raw
Extract wait time from a responseresp_retry_after
Extract HTTP status from responseresp_check_status resp_is_error resp_status resp_status_desc
Get URL/components from the responseresp_url resp_url_path resp_url_queries resp_url_query
Tools for working with lists of responsesresps_data resps_failures resps_requests resps_successes
Secret managementsecret_decrypt secret_decrypt_file secret_encrypt secret_encrypt_file secret_has_key secret_make_key secret_read_rds secret_write_rds
Parse and build URLsurl_build url_parse
Temporarily mock requestslocal_mock local_mocked_responses with_mock with_mocked_responses
Temporarily set verbosity for all requestswith_verbosity