inst/examples/send-file/app.R

library(webfakes)

app <- new_app()
app$use(mw_log())
app$use(mw_etag())

app$get("/logo", function(req, res) {
  res$send_file("Rlogo.png")
})

app$listen(3000L)

Try the webfakes package in your browser

Any scripts or data that you put into this service are public.

webfakes documentation built on Oct. 1, 2023, 9:06 a.m.