Become an expert in R — Interactive courses, Cheat Sheets, certificates and more!
Get Started for Free

dot-routeMiddleware

Internal function to add middleware to a Beakr object


Description

This function is used in each of the http_~() methods as well as the cors(), websocket() and use() utility functions.

Usage

.routeMiddleware(beakr, FUN, path = NULL, method = NULL, websocket = FALSE)

Arguments

beakr

Beakr instance.

FUN

Function to route middleware.

path

Path to route the middleware.

method

HTTP method to employ.

websocket

Boolean, TRUE if websocket.

Value

A Beakr instance with added middleware.


beakr

A Minimalist Web Framework for R

v0.4.3
GPL-3
Authors
Hans Martin [aut], Jonathan Callahan [aut, cre]
Initial release

We don't support your browser anymore

Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.