Route | R Documentation |
This class represents assigning an R function to an http request path
path
Is a string that sets the http request path.
handler
Is the Route
function handler which optionally accepts
a Request
argument.
content_type
Is the MIME content type returned by the function. Common MIME types are listed here. The default MIME type is "text/plain".
new()
Create a Route object
Route$new(path = NULL, handler = NULL, content_type = "text/plain")
path
http request path.
handler
A callback function that executes when the path
request is received.
content_type
A string that defines the MIME type of the content returned by handler
.
A new 'Route' object
clone()
The objects of this class are cloneable with this method.
Route$clone(deep = FALSE)
deep
Whether to make a deep clone.
Rick Dean
Route$new(path="/flight_column_names", handler = getColumnNames, content_type = "text/plain")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.