httr21.0.4 package

Perform HTTP Requests and Process the Responses

curl_translate

Translate curl syntax to httr2

example_url

Code for examples

httr2-package

httr2: Perform HTTP Requests and Process the Responses

iterate_with_offset

Iteration helpers

jwt_claim

Create and encode a JWT

last_response

Retrieve most recent request/response

multi_req_perform

Perform a list of requests in parallel

oauth_cache_path

httr2 OAuth cache location

oauth_client_req_auth

OAuth client authentication

oauth_client

Create an OAuth client

oauth_flow_auth_code_url

OAuth authorization code components

oauth_redirect_uri

Default redirect url for OAuth

oauth_token_cached

Retrieve an OAuth token using the cache

oauth_token

Create an OAuth token

obfuscate

Obfuscate mildly secret information

pipe

Pipe operator

progress_bars

Progress bars in httr2

req_auth_basic

Authenticate request with HTTP basic authentication

req_auth_bearer_token

Authenticate request with bearer token

req_body

Send data in request body

req_cache

Automatically cache requests

req_cookie_preserve

Set and preserve cookies

req_dry_run

Perform a dry run

req_error

Control handling of HTTP errors

req_headers

Modify request headers

req_method

Set HTTP method in request

req_oauth_auth_code

OAuth with authorization code

req_oauth_bearer_jwt

OAuth with a bearer JWT (JSON web token)

req_oauth_client_credentials

OAuth with client credentials

req_oauth_device

OAuth with device flow

req_oauth_password

OAuth with username and password

req_oauth_refresh

OAuth with a refresh token

req_oauth

OAuth authentication

req_options

Set arbitrary curl options in request

req_perform_connection

Perform a request and return a streaming connection

req_perform_iterative

Perform requests iteratively, generating new requests from previous re...

req_perform_parallel

Perform a list of requests in parallel

req_perform_promise

Perform request asynchronously using the promises package

req_perform_sequential

Perform multiple requests in sequence

req_perform_stream

Perform a request and handle data as it streams back

req_perform

Perform a request to get a response

req_progress

Add a progress bar to long downloads or uploads

req_proxy

Use a proxy for a request

req_retry

Control when a request will retry, and how long it will wait between t...

req_template

Set request method/path from a template

req_throttle

Rate limit a request by automatically adding a delay

req_timeout

Set time limit for a request

req_url

Modify request URL

req_user_agent

Set user-agent for a request

req_verbose

Show extra output when request is performed

request

Create a new HTTP request

resp_body_raw

Extract body from response

resp_check_content_type

Check the content type of a response

resp_content_type

Extract response content type and encoding

resp_date

Extract request date from response

resp_headers

Extract headers from a response

resp_link_url

Parse link URL from a response

resp_raw

Show the raw response

resp_retry_after

Extract wait time from a response

resp_status

Extract HTTP status from response

resp_stream_raw

Read a streaming body a chunk at a time

resp_url

Get URL/components from the response

response

Create a new HTTP response

resps_successes

Tools for working with lists of responses

secrets

Secret management

signal_total_pages

Signal total number pages

throttle_status

Display internal throttle status

url_parse

Parse and build URLs

with_mocked_responses

Temporarily mock requests

with_verbosity

Temporarily set verbosity for all requests

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.

  • Maintainer: Hadley Wickham
  • License: MIT + file LICENSE
  • Last published: 2024-09-13