Changelog
Source:NEWS.md
webfakes 1.5.0
CRAN release: 2026-05-16
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).httpbin_app()’s/post,/put,/patch,/deleteand/anything*endpoints now return the request body in thedatafield for anyContent-Type, matchinghttpbin.org(#115).
webfakes 1.4.0
CRAN release: 2025-06-24
webfakes now supports HTTPS (#110).
The cleanup of a
new_app_process()(and thuslocal_app_process()) is now faster. Instead of sending an interrupt first and waiting for the subprocess to quite, it is killed instantly.
webfakes 1.3.2
CRAN release: 2025-01-11
- New server option:
decode_url. If set toFALSE, then the web server will not URL-decode the URL (#106).
webfakes 1.2.1
CRAN release: 2023-10-01
-
tmpl_glue()now works correctly on platforms with an issue inreadChar(..., useBytes = TRUE), e.g. on macOS 14.x Sonoma: https://bugs.r-project.org/show_bug.cgi?id=18605.
webfakes 1.2.0
CRAN release: 2023-05-16
The httpbin app now implements the
/brotli,/deflate,/digest-auth/forms/post,/hidden-basic-auth,/range/:n,/stream/:n,/cacheand/cache/:valueendpoints. With these, it implements all endpoint of the original Python httpbin app (#3).New middleware
mw_cookie_parser()to parse aCookieheader. Relatedly, newresponse$add_cookie()andresponse$clear_cookie()methods to add a cookie to a response and to add a header that clears a cookie (#2).Parsing query parametes without a value now does not fail.
New utility function
http_time_stamp()to format a time stamp for HTTP.The httpbin app now implements the endpoints related to cookies (#3).
The httpbin app now sends the
Dateheader in the correct format.The
offsetparameter is now optional in the/linksendpoint of the httpbin app.mw_etag()now does not add anETagheader to the response, if there is one already. (The comparision is case sensitive.)New middleware:
mw_range_parser()to parseRangeheaders.
webfakes 1.1.6
CRAN release: 2022-11-08
response$send_file()now handlesroot = "/"and absolute paths better on Windows.new_app_process()andlocal_app_process()are now faster, because the app object they need to copy to the subprocess is smaller.
webfakes 1.1.5
CRAN release: 2022-10-25
-
mw_etag()now handles theIf-None-Matchheader properly, and sets the status code of the response to 304, and removes the response body.