HTTP verbs

GET()

GET a url.

POST()

POST file to a server.

PUT()

Send PUT request to server.

DELETE()

Send a DELETE request.

PATCH()

Send PATCH request to a server.

HEAD()

Get url HEADers.

VERB()

VERB a url.

RETRY()

Retry a request until it succeeds.

BROWSE()

Open specified url in browser.

Request configuration

config()

Set curl options.

set_config() reset_config()

Set (and reset) global httr configuration.

with_config() with_verbose()

Execute code with configuration set.

add_headers()

Add additional headers to a request.

authenticate()

Use http authentication.

content_type() content_type_json() content_type_xml() accept() accept_json() accept_xml()

Set content-type and accept headers.

progress()

Add a progress bar.

set_cookies()

Set cookies.

timeout()

Set maximum request time.

upload_file()

Upload a file with POST() or PUT().

use_proxy()

Use a proxy to connect to the internet.

user_agent()

Set user agent.

verbose()

Give verbose output.

write_disk() write_memory()

Control where the response body is written.

write_stream()

Process output in a streaming manner.

Response accessors

content()

Extract content from a request.

cookies()

Access cookies in a response.

headers()

Extract the headers from a response

http_error()

Check for an http error.

http_status()

Give information on the status of a request.

http_type()

Extract the content type of a response

parse_http_date() http_date()

Parse and print http dates.

status_code()

Extract status code from response.

stop_for_status() warn_for_status() message_for_status()

Take action on http error.

Authentication

oauth1.0_token()

Generate an oauth1.0 token.

oauth2.0_token()

Generate an oauth2.0 token.

oauth_app()

Create an OAuth application.

oauth_endpoint()

Describe an OAuth endpoint.

oauth_endpoints()

Popular oauth endpoints.

oauth_service_token()

Generate OAuth token for service accounts.

authenticate()

Use http authentication.

revoke_all()

Revoke all OAuth tokens in the cache.

Url parsing and manipulation

modify_url()

Modify a url.

parse_url() build_url()

Parse and build urls according to RFC3986.

Developer facing

cache_info() rerequest()

Compute caching information for a response.

handle()

Create a handle tied to a particular host.

httr_dr()

Diagnose common configuration problems

httr_options() curl_docs()

List available options.

get_callback() set_callback()

Install or uninstall a callback function

response

The response object.