httr_mock: Turn on 'httr' mocking

View source: R/adapter-httr.R

httr_mockR Documentation

Turn on httr mocking

Description

Sets a callback that routes httr requests through webmockr

Usage

httr_mock(on = TRUE)

Arguments

on

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

Value

Silently returns TRUE when enabled and FALSE when disabled.


ropenscilabs/webmockr documentation built on Feb. 12, 2025, 2:53 a.m.