httr2_mock {webmockr}R 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.


[Package webmockr version 1.0.0 Index]