tests/testthat/_snaps/request_response.md

request_summary works

Code
  cat(request_summary(request, c("method", "uri")))
Output
  POST http://example.com
Code
  cat(request_summary(request, c("method", "uri", "body")))
Output
  POST http://example.com body
Code
  cat(request_summary(request, c("method", "uri", "headers")))
Output
  POST http://example.com 1 2
Code
  cat(request_summary(request, c("method", "uri", "body", "headers")))
Output
  POST http://example.com body 1 2

response_summary works

Code
  response_summary(response_raw)
Output
  [1] "200 with 4 bytes of binary data"
Code
  response_summary(response_unknown)
Output
  [1] "200 with 400 bytes of text data"
Code
  response_summary(response_json)
Output
  [1] "200 with 400 bytes of application/json data"


Try the vcr package in your browser

Any scripts or data that you put into this service are public.

vcr documentation built on Aug. 8, 2025, 6:45 p.m.