Stubbing and Setting Expectations on 'HTTP' Requests


[Up] [Top]

Documentation for package ‘webmockr’ version 2.2.0

Help Pages

disable Enable or disable webmockr
enable Enable or disable webmockr
enabled Enable or disable webmockr
excluding Partially match request query parameters or request bodies
httr2_mock Turn on 'httr2' mocking
httr_mock Turn on 'httr' mocking
including Partially match request query parameters or request bodies
last_request Get the last HTTP request made
last_stub Get the last stub created
mocking-disk-writing Mocking writing to disk
mock_file Mock file
partial Partially match request query parameters or request bodies
remove_request_stub Remove a request stub
RequestPattern RequestPattern class
request_registry List or clear requests in the request registry
request_registry_clear List or clear requests in the request registry
stub_body_diff Get a diff of a stub request body and a request body from an http request
stub_registry List stubs in the stub registry
stub_registry_clear stub_registry_clear
stub_request Stub an http request
to_raise Set raise error condition
to_return Expectation for what's returned from a stubbed request
to_timeout Set timeout as an expected return on a match
webmockr-defunct Defunct functions in 'webmockr'
webmockr_allow_net_connect webmockr configuration
webmockr_configuration webmockr configuration
webmockr_configure webmockr configuration
webmockr_configure_reset webmockr configuration
webmockr_disable_net_connect webmockr configuration
webmockr_net_connect_allowed webmockr configuration
webmockr_reset webmockr_reset
wi_th Set additional parts of a stubbed request