Requests |
|
|---|---|
Create and modify |
|
Create a new HTTP request |
|
|
|
Send data in request body |
Set and preserve cookies |
|
Modify request headers |
|
Set HTTP method in request |
|
Set arbitrary curl options in request |
|
Add a progress bar to long downloads or uploads |
|
Use a proxy for a request |
|
Set request method/path from a template |
|
Set time limit for a request |
|
|
|
Modify request URL |
Set user-agent for a request |
|
Debugging/testing |
|
|
|
Retrieve most recent request/response |
Perform a dry run |
|
Show extra output when request is performed |
|
Temporarily set verbosity for all requests |
|
Authentication |
|
Sign a request with the AWS SigV4 signing protocol |
|
Authenticate request with HTTP basic authentication |
|
Authenticate request with bearer token |
|
OAuth with authorization code |
|
OAuth with a bearer JWT (JSON web token) |
|
|
|
OAuth with client credentials |
OAuth with device flow |
|
OAuth with username and password |
|
OAuth with a refresh token |
|
OAuth token exchange |
|
Perform a request |
|
Perform a request to get a response |
|
Perform a request and handle data as it streams back |
|
Perform a request and return a streaming connection |
|
Perform request asynchronously using the promises package |
|
Control the processThese functions don’t modify the HTTP request that is sent to the server, but affect the overall process of |
|
Automatically cache requests |
|
Control handling of HTTP errors |
|
Rate limit a request by automatically adding a delay |
|
Automatically retry a request on failure |
|
Perform multiple requests |
|
Perform requests iteratively, generating new requests from previous responses |
|
Perform a list of requests in parallel |
|
Perform multiple requests in sequence |
|
|
|
Iteration helpers |
|
|
Tools for working with lists of responses |
Handle the response |
|
|
|
Extract body from response |
Check the content type of a response |
|
Extract response content type and encoding |
|
Extract request date from response |
|
Extract headers from a response |
|
Parse link URL from a response |
|
Show the raw response |
|
Find the request responsible for a response |
|
Extract wait time from a response |
|
|
|
Extract HTTP status from response |
|
|
Read a streaming body a chunk at a time |
Extract timing data |
|
|
|
Get URL/components from the response |
URL manipulation |
|
Build a string from a URL object |
|
Modify a URL |
|
Parse a URL into its component pieces |
|
Parse query parameters and/or build a string |
|
Miscellaneous helpers |
|
Translate curl syntax to httr2 |
|
Is your computer currently online? |
|
OAuthThese functions implement the low-level components of OAuth. |
|
Clear OAuth cache |
|
httr2 OAuth cache location |
|
Create an OAuth client |
|
|
|
OAuth client authentication |
Default redirect url for OAuth |
|
Create an OAuth token |
|
Developer toolingThese functions are useful when developing packges that use httr2. |
|
Keeping secrets |
|
Obfuscate mildly secret information |
|
|
|
Secret management |
Testing |
|
Create a HTTP response for testing |
|
Introspection and mocking |
|
Create a HTTP response |
|
Get request body |
|
Get request headers |
|
Get request method |
|
Get request URL |
|
|
|
Temporarily mock requests |
|