tests/testthat/_snaps/req-dry-run.md

body is shown

Code
  req_dry_run(req_utf8)
Output
  POST / HTTP/1.1
  accept: */*
  content-type: text/plain

  CenĂ¡rio
Code
  req_dry_run(req_json)
Output
  POST / HTTP/1.1
  accept: */*
  content-type: application/json

  {
    "x": 1,
    "y": true
  }
Code
  req_dry_run(req_json, pretty_json = FALSE)
Output
  POST / HTTP/1.1
  accept: */*
  content-type: application/json

  {"x":1,"y":true}
Code
  req_dry_run(req_binary)
Output
  POST / HTTP/1.1
  accept: */*

  <8 bytes>

authorization headers are redacted

Code
  req_dry_run(req)
Output
  GET / HTTP/1.1
  accept: */*
  authorization: <REDACTED>


Try the httr2 package in your browser

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

httr2 documentation built on April 3, 2025, 10:56 p.m.