resp_date | R Documentation |
All responses contain a request date in the Date
header; if not provided
by the server will be automatically added by httr2.
resp_date(resp)
resp |
A httr2 response object, created by |
A POSIXct
date-time.
resp <- response(headers = "Date: Wed, 01 Jan 2020 09:23:15 UTC")
resp |> resp_date()
# If server doesn't add header (unusual), you get the time the request
# was created:
resp <- response()
resp |> resp_date()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.