Package: webfakes 1.5.0.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.5.0.9000.tar.gz
webfakes_1.5.0.9000.zip(r-4.7)webfakes_1.5.0.9000.zip(r-4.6)webfakes_1.5.0.9000.zip(r-4.5)
webfakes_1.5.0.9000.tgz(r-4.6-x86_64)webfakes_1.5.0.9000.tgz(r-4.6-arm64)webfakes_1.5.0.9000.tgz(r-4.5-x86_64)webfakes_1.5.0.9000.tgz(r-4.5-arm64)
webfakes_1.5.0.9000.tar.gz(r-4.7-arm64)webfakes_1.5.0.9000.tar.gz(r-4.7-x86_64)webfakes_1.5.0.9000.tar.gz(r-4.6-arm64)webfakes_1.5.0.9000.tar.gz(r-4.6-x86_64)
manual.pdf |manual.html
card.svg |card.png
webfakes/json (API)
NEWS

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

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

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

On CRAN:

Conda:

8.38 score 62 stars 1 packages 18 scripts 30k downloads 24 exports 0 dependencies

Last updated from:eb0481d4f0. Checks:12 OK, 1 FAIL. Indexed: yes.

TargetResultTimeFilesSyslog
linux-devel-arm64OK154
linux-devel-x86_64OK152
source / vignettesOK198
linux-release-arm64OK166
linux-release-x86_64OK143
macos-release-arm64OK111
macos-release-x86_64OK358
macos-oldrel-arm64OK104
macos-oldrel-x86_64OK306
windows-develOK160
windows-releaseOK152
windows-oldrelOK204
wasm-releaseFAIL117

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