httr2_mock: Turn on 'httr2' mocking

View source: R/adapter-httr2.R

httr2_mockR Documentation

Turn on httr2 mocking

Description

Sets a callback that routes httr2 requests through webmockr

Usage

httr2_mock(on = TRUE)

Arguments

on

(logical) TRUE to turn on, FALSE to turn off. default: TRUE

Value

Silently returns TRUE when enabled and FALSE when disabled.


ropensci/webmockr documentation built on June 14, 2025, 1:24 p.m.