Learn R Programming

ambiorix (version 2.2.0)

forward: Forward Method

Description

Makes it such that the web server skips this method and uses the next one in line instead.

Usage

forward()

Arguments

Value

An object of class forward.

Examples

Run this code
app <- Ambiorix$new()

app$get("/next", function(req, res){
 forward()
})

app$get("/next", function(req, res){
 res$send("Hello")
})

if(interactive())
 app$start()

Run the code above in your browser using DataLab