webmockr-package {webmockr} | R Documentation |
webmockr
Description
Stubbing and setting expectations on HTTP requests
Features
Stubbing HTTP requests at low http client lib level
Setting and verifying expectations on HTTP requests
Matching requests based on method, URI, headers and body
Supports multiple HTTP libraries, including crul and httr
Integration with HTTP test caching library vcr
Author(s)
Scott Chamberlain myrmecocystus+r@gmail.com
Aaron Wolen
Examples
library(webmockr)
stub_request("get", "https://httpbin.org/get")
stub_request("post", "https://httpbin.org/post")
stub_registry()
[Package webmockr version 0.9.0 Index]