Package: webfakes 1.3.2.9000

Gábor Csárdi

webfakes: Fake Web Apps for HTTP Testing

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.

Authors:Gábor Csárdi [aut, cre], Posit Software, PBC [cph, fnd], Civetweb contributors [ctb], Redoc contributors [ctb], L. Peter Deutsch [ctb], Martin Purschke [ctb], Aladdin Enterprises [cph], Maëlle Salmon [ctb]

webfakes_1.3.2.9000.tar.gz
webfakes_1.3.2.9000.zip(r-4.5)webfakes_1.3.2.9000.zip(r-4.4)webfakes_1.3.2.9000.zip(r-4.3)
webfakes_1.3.2.9000.tgz(r-4.4-x86_64)webfakes_1.3.2.9000.tgz(r-4.4-arm64)webfakes_1.3.2.9000.tgz(r-4.3-x86_64)webfakes_1.3.2.9000.tgz(r-4.3-arm64)
webfakes_1.3.2.9000.tar.gz(r-4.5-noble)webfakes_1.3.2.9000.tar.gz(r-4.4-noble)
webfakes_1.3.2.9000.tgz(r-4.4-emscripten)webfakes_1.3.2.9000.tgz(r-4.3-emscripten)
webfakes.pdf |webfakes.html
webfakes/json (API)
NEWS

# Install 'webfakes' in R:
install.packages('webfakes', repos = c('https://r-lib.r-universe.dev', 'https://cloud.r-project.org'))

Peer review:

Bug tracker:https://github.com/r-lib/webfakes/issues

Pkgdown site:https://webfakes.r-lib.org

On CRAN:

7.20 score 63 stars 1 packages 15 scripts 9.4k downloads 24 exports 0 dependencies

Last updated 8 hours agofrom:fd0f9273f2. Checks:9 OK. Indexed: yes.

TargetResultLatest binary
Doc / VignettesOKJan 14 2025
R-4.5-win-x86_64OKJan 14 2025
R-4.5-linux-x86_64OKJan 14 2025
R-4.4-win-x86_64OKJan 14 2025
R-4.4-mac-x86_64OKJan 14 2025
R-4.4-mac-aarch64OKJan 14 2025
R-4.3-win-x86_64OKJan 14 2025
R-4.3-mac-x86_64OKJan 14 2025
R-4.3-mac-aarch64OKJan 14 2025

Exports:git_apphttp_time_stamphttpbin_applocal_app_processmw_cgimw_cookie_parsermw_etagmw_jsonmw_logmw_multipartmw_range_parsermw_rawmw_staticmw_textmw_urlencodednew_appnew_app_processnew_regexpoauth2_httr_loginoauth2_loginoauth2_resource_appoauth2_third_party_appserver_optstmpl_glue

Dependencies:

Readme and manuals

Help Manual

Help pageTopics
Web app that acts as a git http servergit_app
webfakes glossaryglossary
How to use webfakes in your testshow-to
Format a time stamp for HTTPhttp_time_stamp
Generic web app for testing HTTP clientshttpbin_app
Happy HTTP testing with webfakesintroduction
App process that is cleaned up automaticallylocal_app_process
Middleware that calls a CGI scriptmw_cgi
Middleware to parse Cookiesmw_cookie_parser
Middleware that add an 'ETag' header to the responsemw_etag
Middleware to parse a JSON bodymw_json
Log requests to the standard output or other connectionmw_log
Parse a multipart HTTP request bodymw_multipart
Middleware to parse a Range headermw_range_parser
Middleware to read the raw body of a requestmw_raw
Middleware function to serve static filesmw_static
Middleware to parse a plain text bodymw_text
Middleware to parse an url-encoded request bodymw_urlencoded
Create a new web applicationnew_app webfakes_app
Run a webfakes app in another processnew_app_process webfakes_app_process
Create a new regular expression to use in webfakes routesnew_regexp webfakes_regexp
Helper function to use httr's OAuth2.0 functions non-interactively, e.g. in test casesoauth2_httr_login
Helper function to log in to a third party OAuth2.0 app without a browseroauth2_login
Fake OAuth 2.0 resource and authorization appoauth2_resource_app
App representing the third-party appoauth2_third_party_app
Webfakes web server optionsserver_opts
glue based template enginetmpl_glue
A webfakes request objectwebfakes_request
A webfakes response objectwebfakes_response