remove_request_stub: Remove a request stub

View source: R/remove_request_stub.R

remove_request_stubR Documentation

Remove a request stub

Description

Remove a request stub

Usage

remove_request_stub(stub)

Arguments

stub

a request stub, of class StubbedRequest

Value

logical, TRUE if removed, FALSE if not removed

See Also

Other stub-registry: StubRegistry, stub_registry_clear(), stub_registry()

Examples

(x <- stub_request("get", "https://httpbin.org/get"))
stub_registry()
remove_request_stub(x)
stub_registry()

webmockr documentation built on March 7, 2023, 5:25 p.m.