Description Usage Arguments Examples
Default http server configuration for libuv hook.
1 | http_server(routes)
|
routes |
list. A named list of routes, with a handler function for each route. The first unnamed route will be used as the root. If none is provided, just a 404 status will be returned. |
1 2 3 4 5 | ## Not run:
http_server(list('/ping' = function(params, query) 'Hello world!',
function(params, query) 'Invalid route.'))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.