Skip to content

webmockr

Stubbing and Setting Expectations on 'HTTP' Requests

v2.2.0 · Jul 20, 2025 · MIT + file LICENSE

Description

Stubbing and setting expectations on 'HTTP' requests. Includes tools for stubbing 'HTTP' requests, including expected request conditions and response conditions. Match on 'HTTP' method, query parameters, request body, headers and more. Can be used for unit tests or outside of a testing context.

Downloads

4.2K

Last 30 days

1924th

12.8K

Last 90 days

64.3K

Last year

Trend: +1.7% (30d vs prior 30d)

CRAN Check Status

14 OK
Show all 14 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-macos-arm64 OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (22)

Dependency Network

Dependencies Reverse dependencies curl jsonlite magrittr R6 urltools (>= 1.6.0) fauxpas rlang cli MolgenisArmadillo RTD archiveRetriever citecorp connectwidgets crul lambdr magmaR mtaOpenData nycOpenData nysOpenData omophub openaq polite qualtRics +7 more reverse deps webmockr

Version History

new 2.2.0 Mar 10, 2026
updated 2.2.0 ← 2.1.0 diff Jul 20, 2025
updated 2.1.0 ← 2.0.0 diff Jun 28, 2025
updated 2.0.0 ← 1.0.0 diff Feb 10, 2025
updated 1.0.0 ← 0.9.0 diff Jul 22, 2024
updated 0.9.0 ← 0.8.2 diff Feb 27, 2023
updated 0.8.2 ← 0.8.0 diff Aug 27, 2022
updated 0.8.0 ← 0.7.4 diff Mar 13, 2021
updated 0.7.4 ← 0.7.0 diff Dec 8, 2020
updated 0.7.0 ← 0.6.2 diff Sep 29, 2020
updated 0.6.2 ← 0.6.0 diff Mar 23, 2020
updated 0.6.0 ← 0.5.0 diff Mar 1, 2020
updated 0.5.0 ← 0.4.0 diff Dec 3, 2019
updated 0.4.0 ← 0.3.4 diff Aug 8, 2019
updated 0.3.4 ← 0.3.0 diff Feb 8, 2019
updated 0.3.0 ← 0.2.9 diff Jan 8, 2019
updated 0.2.9 ← 0.2.8 diff Nov 5, 2018
updated 0.2.8 ← 0.2.6 diff Oct 18, 2018
updated 0.2.6 ← 0.2.4 diff May 16, 2018
updated 0.2.4 ← 0.2.0 diff May 7, 2018