Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

response

The response object.


Description

The response object captures all information from a request. It includes fields:

  • url the url the request was actually sent to (after redirects)

  • handle the handle associated with the url

  • status_code the http status code

  • header a named list of headers returned by the server

  • cookies a named list of cookies returned by the server

  • content the body of the response, as raw vector. See content() for various ways to access the content.

  • time request timing information

  • config configuration for the request

Details

For non-http(s) responses, some parts including the status and header may not be interpretable the same way as http responses.

See Also

Other response methods: content(), http_error(), http_status(), stop_for_status()


httr

Tools for Working with URLs and HTTP

v1.4.2
MIT + file LICENSE
Authors
Hadley Wickham [aut, cre], RStudio [cph]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.