Package: httr2 1.0.5.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], Posit Software, PBC [cph, fnd], Maximilian Girlich [ctb]

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

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

Peer review:

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

On CRAN:

http

17.24 score 238 stars 967 packages 1.5k scripts 315k downloads 131 exports 13 dependencies

Last updated 3 hours agofrom:d2485f37c3. Checks:OK: 5 ERROR: 2. Indexed: no.

TargetResultDate
Doc / VignettesOKOct 29 2024
R-4.5-winOKOct 29 2024
R-4.5-linuxOKOct 29 2024
R-4.4-winOKOct 29 2024
R-4.4-macERROROct 29 2024
R-4.3-winOKOct 29 2024
R-4.3-macERROROct 29 2024

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_aws_v4req_auth_basicreq_auth_bearer_tokenreq_body_filereq_body_formreq_body_jsonreq_body_json_modifyreq_body_multipartreq_body_rawreq_cachereq_cookie_preservereq_cookies_setreq_dry_runreq_errorreq_headersreq_methodreq_oauthreq_oauth_auth_codereq_oauth_bearer_jwtreq_oauth_client_credentialsreq_oauth_devicereq_oauth_passwordreq_oauth_refreshreq_optionsreq_performreq_perform_connectionreq_perform_iterativereq_perform_parallelreq_perform_promisereq_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_stream_awsresp_stream_linesresp_stream_rawresp_stream_sseresp_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 Oct 29 2024.

Last update: 2024-09-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
Sign a request with the AWS SigV4 signing protocolreq_auth_aws_v4
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
Set and preserve cookiesreq_cookies_set req_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 a request and return a streaming connectionreq_perform_connection
Perform requests iteratively, generating new requests from previous responsesreq_perform_iterative
Perform a list of requests in parallelreq_perform_parallel
Perform request asynchronously using the promises packagereq_perform_promise
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
Read a streaming body a chunk at a timeclose.httr2_response resp_stream_aws resp_stream_lines resp_stream_raw resp_stream_sse
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