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>


r-lib/httr2 documentation built on Feb. 28, 2025, 7:51 a.m.