Description Methods Package details Methods See Also
A Beakr
object defines the server instance utilizing the
httpuv package. This class defines an interface for the rest of the
beakr package and is therefore meant to be instantiated.
router()
An instantiated Router
object.
server()
The instantiated Server
object.
appDefinition()
A method to define the functions or middleware of users application.
initialize()
Creates a new Router
object for the router
method.
start(host, port, daemon)
Returns a running server. If daemon = TRUE
, the server will run
in the background.
print(...)
Returns a console output of the instance and its number of middleware attached.
The beakr package provides a minimal web framework for for developing
lightweight APIs in R. The package includes basic functionality for handling
common HTTP
requests. beakr is a ground-up rewrite and
continuation of the jug package developed by Bart Smeets. The
beakr package is supported and maintained by
Mazama Science.
appDefinition()
Beakr$appDefinition()
new()
Beakr$new()
start()
Beakr$start(host, port, daemon)
print()
Beakr$print()
clone()
The objects of this class are cloneable with this method.
Beakr$clone(deep = FALSE)
deep
Whether to make a deep clone.
Router
and Middleware
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.