Learn R Programming

jug (version 0.1.7)

add_middleware: Internal function to add middleware

Description

Internal function to add middleware

Usage

add_middleware(jug, func, path = NULL, method = NULL, websocket = FALSE)

Arguments

jug
the jug instance
func
the function to bind
path
the path to bind to
method
the method to bind to
websocket
should the middleware bind to the websocket protocol