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 May 29, 2024, 2:24 a.m.