webfakes
1.5.0Fake Web Apps for HTTP Testing
Overview
Create a web app that makes it easier to test web clients without using the internet. It includes a web app framework with path matching, parameters and templates. Can parse various 'HTTP' request bodies. Can send 'JSON' data or files from the disk. Includes a web app that implements the 'httpbin.org' web service.
- New
keep_alive_timeout_msoption inserver_opts()to configure the idle timeout of keep-alive connections. The default is 5000 ms, up from the underlying CivetWeb default of 500 ms (#114). - Handler functions may now declare a
localsargument, in which case webfakes passesapp$localsto it directly, without having to access it throughreq$app$locals(#112). - webfakes now builds on platforms where
ardoes not writes a symbol index by default (@barracuda156, #121). - webfakes now parses HTTP date headers (e.g.
Date,Last-Modified,Expires) correctly regardless of the user'sLC_TIMEsetting (@lbm364dl, #124). - Route matching now ignores trailing slashes. Use regular expressions (
new_regexp()) if you need exact trailing slash matching (#120).
Show all changes in 1.5.0Hide the rest of the changes in 1.5.0
httpbin_app()'s/post,/put,/patch,/deleteand/anything*endpoints now return the request body in thedatafield for anyContent-Type, matchinghttpbin.org(#115).
From NEWS.md in the release
Install
Health
- OK13 OK2026-10-15
- ERROR12 OK, 1 ERROR2026-10-08
- OK13 OK2026-08-04
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-07-30
Show 9 earlier changesHide 9 earlier changes
- NOTE12 OK, 1 NOTE2026-07-29
- OK13 OK2026-06-08
- ERROR12 OK, 1 ERROR2026-06-07
- OK13 OK2026-05-24
- ERROR12 OK, 1 ERROR2026-05-12
- OK14 OK2026-04-16
- WARNING9 OK, 4 NOTE, 1 WARNING2026-03-21
- NOTE13 OK, 1 NOTE2026-03-17
- OK14 OK2026-03-10
Documentation
- Help pages
- 30 (1 internal)includes a package overview page
- Examples that run
- 100%18 run in a plain check (1 of them under a condition)
- Exported functions with examples
- 67%
- Documented parameters
- 97%
- Return-value docs
- 92%
- Help pages citing references
- 0%
Downloads
Repository
- PRs merged (all time)
- 96%
- Median days to close, 50 most recently updated closed issues
- 48
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Releases over time
Issues over time
PRs over time
14 development-tooling and community-health practices detected across 6 families in the upstream repository
Checks run against github.com/r-lib/webfakes on 2026-10-11.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2026-06-06 · The repository has a site deploy workflow
pkgdown site last built 2026-05-17
Show all practicesHide 2 practices
Dependencies
Installing webfakes adds no packages beyond those that come with R.
Show all 37 packagesHide all 37 packages
Code & Tests
People & History
Pick two releases to compare their code metrics.
- 1.5.0Latest
- RR 4.6.0 released · 2026-04-24
- 1.4.12026-04-08 · diff ↗
- 1.4.02025-06-24 · diff ↗
- RR 4.5.0 released · 2025-04-11
- 1.3.22025-01-11 · diff ↗
- 1.3.12024-04-25 · diff ↗
- RR 4.4.0 released · 2024-04-24
- 1.3.0
- 1.2.12023-10-01 · diff ↗
- 1.2.0
- RR 4.3.0 released · 2023-04-21
- 1.1.72023-02-08 · diff ↗
- 1.1.62022-11-08 · diff ↗
- 1.1.52022-10-25 · diff ↗
- 1.1.42022-09-08 · diff ↗
Package metadata
- First published
- 2020-12-16
- Total releases
- 15 / 6 yrs
- License
- MIT + file LICENSE OSI
- Minimum R
- ≥ 3.6
- Download size
- 1.8 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("webfakes")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-17, which the citation names so these numbers can be found later. More on citing and the projects behind them.