{
  "_id": "6a81df2ce3e290a431a558de",
  "Package": "webmockr",
  "Title": "Stubbing and Setting Expectations on 'HTTP' Requests",
  "Description": "Stubbing and setting expectations on 'HTTP' requests.\nIncludes tools for stubbing 'HTTP' requests, including expected\nrequest conditions and response conditions. Match on 'HTTP'\nmethod, query parameters, request body, headers and more. Can\nbe used for unit tests or outside of a testing context.",
  "Version": "2.2.1.92",
  "Authors@R": "c(\nperson(\"Scott\", \"Chamberlain\", role = c(\"aut\", \"cre\"), email =\n\"myrmecocystus+r@gmail.com\", comment = c(ORCID=\"0000-0003-1444-9135\")),\nperson(\"Aaron\", \"Wolen\", role = \"ctb\",\ncomment = c(ORCID=\"0000-0003-2542-2202\")),\nperson(\"rOpenSci\", role = \"fnd\", comment = c(ROR = \"019jywm96\"))\n)",
  "License": "MIT + file LICENSE",
  "URL": "https://github.com/ropensci/webmockr,\nhttps://books.ropensci.org/http-testing/,\nhttps://docs.ropensci.org/webmockr/",
  "BugReports": "https://github.com/ropensci/webmockr/issues",
  "Encoding": "UTF-8",
  "Language": "en-US",
  "Roxygen": "list(markdown = TRUE)",
  "Config/testthat/edition": "3",
  "Config/testthat/parallel": "true",
  "Config/roxygen2/version": "8.1.0",
  "VignetteBuilder": "knitr",
  "Config/pak/sysreqs": "libssl-dev",
  "Repository": "https://ropensci.r-universe.dev",
  "Date/Publication": "2026-08-16 05:00:07 UTC",
  "RemoteUrl": "https://github.com/ropensci/webmockr",
  "RemoteRef": "main",
  "RemoteSha": "128d87b721c1e03bcc031702f2d1692838507f83",
  "NeedsCompilation": "no",
  "Packaged": {
    "Date": "2026-08-16 15:59:01 UTC",
    "User": "root"
  },
  "Author": "Scott Chamberlain [aut, cre] (ORCID:\n<https://orcid.org/0000-0003-1444-9135>),\nAaron Wolen [ctb] (ORCID: <https://orcid.org/0000-0003-2542-2202>),\nrOpenSci [fnd] (ROR: <https://ror.org/019jywm96>)",
  "Maintainer": "Scott Chamberlain <myrmecocystus+r@gmail.com>",
  "_user": "ropensci",
  "_type": "src",
  "_file": "webmockr_2.2.1.92.tar.gz",
  "_fileid": "https://r2.ropensci.org/b545ba140a60bbb963102323a919e30a11fd91bf63f4db98937cc0dac42c36bc",
  "_filesize": 574198,
  "_sha256": "b545ba140a60bbb963102323a919e30a11fd91bf63f4db98937cc0dac42c36bc",
  "_expires": "2026-11-24T16:02:50.000Z",
  "_created": "2026-08-16T15:59:01.000Z",
  "_published": "2026-08-16T16:02:52.756Z",
  "_jobs": [
    {
      "job": 95189715606,
      "time": 150,
      "config": "linux-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "9266305913"
    },
    {
      "job": 95189715641,
      "time": 178,
      "config": "linux-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9266311714"
    },
    {
      "job": 95189715652,
      "time": 90,
      "config": "macos-oldrel-arm64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "9266293381"
    },
    {
      "job": 95189715663,
      "time": 102,
      "config": "macos-release-arm64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9266295534"
    },
    {
      "job": 95189316836,
      "time": 223,
      "config": "pkgdown",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "9266278281"
    },
    {
      "job": 95189316841,
      "time": 206,
      "config": "source",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9266275161"
    },
    {
      "job": 95189715604,
      "time": 113,
      "config": "wasm-release",
      "r": "4.6.0",
      "check": "OK",
      "artifact": "9266298186"
    },
    {
      "job": 95189715598,
      "time": 88,
      "config": "windows-devel-x86_64",
      "r": "4.7.0",
      "check": "OK",
      "artifact": "9266293208"
    },
    {
      "job": 95189715741,
      "time": 74,
      "config": "windows-oldrel-x86_64",
      "r": "4.5.3",
      "check": "OK",
      "artifact": "9266290251"
    },
    {
      "job": 95189715638,
      "time": 89,
      "config": "windows-release-x86_64",
      "r": "4.6.1",
      "check": "OK",
      "artifact": "9266293277"
    }
  ],
  "_host": "GitHub-Actions",
  "_buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887",
  "_status": "success",
  "_upstream": "https://github.com/ropensci/webmockr",
  "_commit": {
    "id": "128d87b721c1e03bcc031702f2d1692838507f83",
    "author": "Scott Chamberlain <sckott@fastmail.com>",
    "committer": "Scott Chamberlain <sckott@fastmail.com>",
    "message": "fix articles navbar string\n",
    "time": 1786856407
  },
  "_maintainer": {
    "name": "Scott Chamberlain",
    "email": "myrmecocystus+r@gmail.com",
    "login": "sckott",
    "mastodon": "@sckottie@hachyderm.io",
    "bluesky": "@sckott.bsky.social",
    "orcid": "0000-0003-1444-9135",
    "description": "Software Engineer @ Fred Hutch",
    "uuid": 577668
  },
  "_distro": "resolute",
  "_registered": true,
  "_dependencies": [
    {
      "package": "R",
      "version": ">= 4.1.0",
      "role": "Depends"
    },
    {
      "package": "curl",
      "role": "Imports"
    },
    {
      "package": "jsonlite",
      "role": "Imports"
    },
    {
      "package": "magrittr",
      "version": ">= 1.5",
      "role": "Imports"
    },
    {
      "package": "R6",
      "version": ">= 2.1.3",
      "role": "Imports"
    },
    {
      "package": "urltools",
      "version": ">= 1.6.0",
      "role": "Imports"
    },
    {
      "package": "fauxpas",
      "role": "Imports"
    },
    {
      "package": "rlang",
      "role": "Imports"
    },
    {
      "package": "cli",
      "role": "Imports"
    },
    {
      "package": "testthat",
      "version": ">= 3.0.0",
      "role": "Suggests"
    },
    {
      "package": "xml2",
      "role": "Suggests"
    },
    {
      "package": "crul",
      "role": "Suggests"
    },
    {
      "package": "httr",
      "role": "Suggests"
    },
    {
      "package": "httr2",
      "role": "Suggests"
    },
    {
      "package": "diffobj",
      "role": "Suggests"
    },
    {
      "package": "withr",
      "role": "Suggests"
    },
    {
      "package": "knitr",
      "role": "Suggests"
    },
    {
      "package": "rmarkdown",
      "role": "Suggests"
    }
  ],
  "_owner": "ropensci",
  "_selfowned": true,
  "_usedby": 0,
  "_updates": [
    {
      "week": "2026-32",
      "n": 2
    },
    {
      "week": "2026-33",
      "n": 7
    }
  ],
  "_tags": [],
  "_topics": [
    "http",
    "https",
    "api",
    "web-services",
    "curl",
    "mock",
    "mocking",
    "fakeweb",
    "http-mocking",
    "testing",
    "testing-tools",
    "tdd",
    "http-mock"
  ],
  "_stars": 50,
  "_contributors": [
    {
      "user": "sckott",
      "count": 555,
      "uuid": 577668
    },
    {
      "user": "aaronwolen",
      "count": 32,
      "uuid": 1067915
    },
    {
      "user": "hadley",
      "count": 5,
      "uuid": 4196
    },
    {
      "user": "jeroen",
      "count": 3,
      "uuid": 216319
    },
    {
      "user": "maelle",
      "count": 3,
      "uuid": 8360597
    },
    {
      "user": "bisaloo",
      "count": 1,
      "uuid": 10783929
    }
  ],
  "_userbio": {
    "uuid": 1200269,
    "type": "organization",
    "name": "rOpenSci",
    "followers": 1137,
    "description": "Tools and R Packages for Open Science"
  },
  "_downloads": {
    "count": 4107,
    "source": "https://cranlogs.r-pkg.org/downloads/total/last-month/webmockr"
  },
  "_devurl": "https://github.com/ropensci/webmockr",
  "_pkgdown": "https://docs.ropensci.org/webmockr",
  "_searchresults": 150,
  "_metadata": {
    "ropensci_category": "http-tools"
  },
  "_rbuild": "4.6.1",
  "_assets": [
    "extra/citation.cff",
    "extra/citation.html",
    "extra/citation.json",
    "extra/citation.txt",
    "extra/contents.json",
    "extra/manual.pdf",
    "extra/NEWS.html",
    "extra/NEWS.txt",
    "extra/readme.html",
    "extra/readme.md",
    "extra/webmockr.html",
    "LICENSE",
    "manual.pdf"
  ],
  "_homeurl": "https://github.com/ropensci/webmockr",
  "_realowner": "ropensci",
  "_cranurl": true,
  "_releases": [
    {
      "version": "0.1.0",
      "date": "2017-05-20"
    },
    {
      "version": "0.2.0",
      "date": "2018-03-02"
    },
    {
      "version": "0.2.4",
      "date": "2018-05-08"
    },
    {
      "version": "0.2.6",
      "date": "2018-05-17"
    },
    {
      "version": "0.2.8",
      "date": "2018-10-19"
    },
    {
      "version": "0.2.9",
      "date": "2018-11-06"
    },
    {
      "version": "0.3.0",
      "date": "2019-01-09"
    },
    {
      "version": "0.3.4",
      "date": "2019-02-09"
    },
    {
      "version": "0.4.0",
      "date": "2019-08-09"
    },
    {
      "version": "0.5.0",
      "date": "2019-12-05"
    },
    {
      "version": "0.6.0",
      "date": "2020-03-02"
    },
    {
      "version": "0.6.2",
      "date": "2020-03-24"
    },
    {
      "version": "0.7.0",
      "date": "2020-09-30"
    },
    {
      "version": "0.7.4",
      "date": "2020-12-09"
    },
    {
      "version": "0.8.0",
      "date": "2021-03-14"
    },
    {
      "version": "0.8.2",
      "date": "2022-08-28"
    },
    {
      "version": "0.9.0",
      "date": "2023-02-28"
    },
    {
      "version": "1.0.0",
      "date": "2024-07-23"
    },
    {
      "version": "2.0.0",
      "date": "2025-02-11"
    },
    {
      "version": "2.1.0",
      "date": "2025-06-29"
    },
    {
      "version": "2.2.0",
      "date": "2025-07-21"
    }
  ],
  "_exports": [
    "%>%",
    "build_crul_response",
    "build_httr_response",
    "build_httr2_request",
    "build_httr2_response",
    "CrulAdapter",
    "disable",
    "enable",
    "enabled",
    "excluding",
    "httr_mock",
    "httr2_mock",
    "Httr2Adapter",
    "HttrAdapter",
    "including",
    "last_request",
    "last_stub",
    "mock_file",
    "pluck_body",
    "remove_request_stub",
    "request_registry",
    "request_registry_clear",
    "request_registry_filter",
    "RequestSignature",
    "Response",
    "stub_body_diff",
    "stub_registry",
    "stub_registry_clear",
    "stub_request",
    "to_raise",
    "to_return",
    "to_return_",
    "to_timeout",
    "webmockr_allow_net_connect",
    "webmockr_configuration",
    "webmockr_configure",
    "webmockr_configure_reset",
    "webmockr_crul_fetch",
    "webmockr_disable",
    "webmockr_disable_net_connect",
    "webmockr_enable",
    "webmockr_net_connect_allowed",
    "webmockr_reset",
    "wi_th",
    "wi_th_"
  ],
  "_help": [
    {
      "page": "enable",
      "title": "Enable or disable webmockr",
      "topics": [
        "disable",
        "enable",
        "enabled"
      ]
    },
    {
      "page": "httr_mock",
      "title": "Turn on 'httr' mocking",
      "topics": [
        "httr_mock"
      ]
    },
    {
      "page": "httr2_mock",
      "title": "Turn on 'httr2' mocking",
      "topics": [
        "httr2_mock"
      ]
    },
    {
      "page": "including",
      "title": "Partially match request query parameters or request bodies",
      "topics": [
        "excluding",
        "including",
        "partial"
      ]
    },
    {
      "page": "last_request",
      "title": "Get the last HTTP request made",
      "topics": [
        "last_request"
      ]
    },
    {
      "page": "last_stub",
      "title": "Get the last stub created",
      "topics": [
        "last_stub"
      ]
    },
    {
      "page": "mock_file",
      "title": "Mock file",
      "topics": [
        "mock_file"
      ]
    },
    {
      "page": "mocking-disk-writing",
      "title": "Mocking writing to disk",
      "topics": [
        "mocking-disk-writing"
      ]
    },
    {
      "page": "remove_request_stub",
      "title": "Remove a request stub",
      "concept": [
        "stub-registry"
      ],
      "topics": [
        "remove_request_stub"
      ]
    },
    {
      "page": "request_registry",
      "title": "List or clear requests in the request registry",
      "concept": [
        "request-registry"
      ],
      "topics": [
        "request_registry",
        "request_registry_clear"
      ]
    },
    {
      "page": "request_registry_filter",
      "title": "Request registry filter",
      "topics": [
        "request_registry_filter"
      ]
    },
    {
      "page": "stub_body_diff",
      "title": "Get a diff of a stub request body and a request body from an http request",
      "topics": [
        "stub_body_diff"
      ]
    },
    {
      "page": "stub_registry",
      "title": "List stubs in the stub registry",
      "concept": [
        "stub-registry"
      ],
      "topics": [
        "stub_registry"
      ]
    },
    {
      "page": "stub_registry_clear",
      "title": "stub_registry_clear",
      "concept": [
        "stub-registry"
      ],
      "topics": [
        "stub_registry_clear"
      ]
    },
    {
      "page": "stub_request",
      "title": "Stub an http request",
      "topics": [
        "stub_request"
      ]
    },
    {
      "page": "to_raise",
      "title": "Set raise error condition",
      "topics": [
        "to_raise"
      ]
    },
    {
      "page": "to_return",
      "title": "Expectation for what's returned from a stubbed request",
      "topics": [
        "to_return"
      ]
    },
    {
      "page": "to_timeout",
      "title": "Set timeout as an expected return on a match",
      "topics": [
        "to_timeout"
      ]
    },
    {
      "page": "webmockr_configure",
      "title": "webmockr configuration",
      "topics": [
        "webmockr_allow_net_connect",
        "webmockr_configuration",
        "webmockr_configure",
        "webmockr_configure_reset",
        "webmockr_disable_net_connect",
        "webmockr_net_connect_allowed"
      ]
    },
    {
      "page": "webmockr_reset",
      "title": "webmockr_reset",
      "topics": [
        "webmockr_reset"
      ]
    },
    {
      "page": "webmockr-defunct",
      "title": "Defunct functions in 'webmockr'",
      "topics": [
        "webmockr-defunct"
      ]
    },
    {
      "page": "wi_th",
      "title": "Set additional parts of a stubbed request",
      "topics": [
        "wi_th"
      ]
    }
  ],
  "_readme": "https://github.com/ropensci/webmockr/raw/main/README.md",
  "_rundeps": [
    "cli",
    "curl",
    "fauxpas",
    "httpcode",
    "jsonlite",
    "magrittr",
    "R6",
    "Rcpp",
    "rlang",
    "triebeard",
    "urltools",
    "whisker"
  ],
  "_vignettes": [
    {
      "source": "webmockr.Rmd",
      "filename": "webmockr.html",
      "title": "Getting Started",
      "engine": "knitr::rmarkdown",
      "headings": [
        "Inside a test framework",
        "Outside a test framework",
        "Stubbed request based on uri only and with the default response",
        "Stubbing requests based on method, uri and query params",
        "Stubbing requests and set expectation of a timeout",
        "Stubbing requests and set HTTP error expectation",
        "httr integration",
        "httr2 integration",
        "Writing to disk",
        "Many requests in a row"
      ],
      "created": "2026-08-16 03:24:48",
      "modified": "2026-08-16 03:24:48",
      "commits": 1
    }
  ],
  "_score": 8.187555970581371,
  "_indexed": true,
  "_nocasepkg": "webmockr",
  "_universes": [
    "ropensci",
    "sckott"
  ],
  "_binaries": [
    {
      "r": "4.7.0",
      "os": "linux",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:01:29.000Z",
      "distro": "resolute",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/9c3ac7d836bc4738cb273f92339bbb461aeb769c56f012dab99ee9d76e177a68",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.6.1",
      "os": "linux",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:01:57.000Z",
      "distro": "resolute",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/62ab122c50921c5597be656e0b134f9dba5ab81dfc76e7a7db99877cf3469638",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.5.3",
      "os": "mac",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:00:32.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/54120ace1ec507ec014612372b04ca8dff57bb492f3eb7fcae2fbcaf25a9dea7",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.6.1",
      "os": "mac",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:00:40.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/26bc17143394d8bebbd29d9d770198500ed3a6cd477e658c1f66f13a03ff98c6",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.6.0",
      "os": "wasm",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:01:16.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/ad8fe268b25a6c1832309300d7c8f97b9a698d330939714215a38da466702a09",
      "status": "success",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.7.0",
      "os": "win",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:00:09.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/d5c6bda76c4ff8fad8601b534baf50271723fe8ff860998bbef1a18d3bef1dfa",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.5.3",
      "os": "win",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:00:07.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/c0b48c08c759d0dc31fe512290d80aff9e0349c54c0cf65a0f815d2d46442851",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    },
    {
      "r": "4.6.1",
      "os": "win",
      "version": "2.2.1.92",
      "date": "2026-08-16T16:00:11.000Z",
      "commit": "128d87b721c1e03bcc031702f2d1692838507f83",
      "fileid": "https://r2.ropensci.org/b38da3cbe0c672cda8ffc0d278fe2b8e4a5c1d9b514cbafc71f7db4b071c81bd",
      "status": "success",
      "check": "OK",
      "buildurl": "https://github.com/r-universe/ropensci/actions/runs/31957104887"
    }
  ]
}