Skip to content

Repository files navigation

webmockr

cran checks Project Status: Active - The project has reached a stable, usable state and is being actively developed. R-CMD-check codecov rstudio mirror downloads cran version

R library for stubbing and setting expectations on HTTP requests.

Port of the Ruby gem webmock

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
  • Can be used for testing or outside of a testing context
  • Supports async http request mocking with crul only

Supported HTTP libraries

Install

from cran

install.packages("webmockr")

Dev version

# install.packages("pak")
pak::pak("ropensci/webmockr")

Contributors

Meta

  • Please report any issues or bugs.
  • License: MIT
  • Get citation information for webmockr in R doing citation(package = 'webmockr')
  • Please note that this package is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

About

Stub and set expectations on HTTP requests

Topics

Resources

Code of conduct

Contributing

Stars

50 stars

Watchers

4 watching

Forks

Releases

Used by

Contributors

Languages