# NOT RUN {
# This is how you can see the request and response objects:
app <- new_app()
app$get("/", function(req, res) {
browser()
res$send("done")
})
app
# Now start this app on a port:
# app$listen(3000)
# and connect to it from a web browser: http://127.0.0.1:3000
# You can also use another R session to connect:
# httr::GET("http://127.0.0.1:3000")
# or the command line curl tool:
# curl -v http://127.0.0.1:3000
# The app will stop while processing the request.
# }
Run the code above in your browser using DataLab