Code
response(200)
Message
<httr2_response>
GET https://example.com
Status: 200 OK
Body: None
Code
response(200, headers = "Content-Type: text/html")
Message
<httr2_response>
GET https://example.com
Status: 200 OK
Content-Type: text/html
Body: None
Code
response(200, body = charToRaw("abcdef"))
Message
<httr2_response>
GET https://example.com
Status: 200 OK
Body: In memory (6 bytes)
Code
response(200, body = new_path("path-empty"))
Message
<httr2_response>
GET https://example.com
Status: 200 OK
Body: None
Code
response(200, body = new_path("path-content"))
Message
<httr2_response>
GET https://example.com
Status: 200 OK
Body: On disk 'path-content' (15 bytes)
Code
check_response(1)
Condition
Error:
! `1` must be an HTTP response object, not the number 1.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.