jug: A Simple Web Framework for R

A set of functions to ease the building of web APIs.

Author
Bart Smeets [aut, cre]
Date of publication
2016-09-15 10:55:24
Maintainer
Bart Smeets <bartsmeets86@gmail.com>
License
MIT + file LICENSE
Version
0.1.4
URLs

View on CRAN

Man pages

add_middleware
Internal function to add middleware
collector
Collector function for middlewares
cors
Add cors functionality
decorate
Convenience function to decorate existing functions
delete
Function to add DELETE-binding middleware
Error
Response class
get
Function to add GET-binding middleware
include
Include elsewhere constructed middleware with primary jug...
Jug
New jug instance
match_path
Helper function to extract regex named capture groups from...
Middleware
Middleware class
MiddlewareHandler
MiddlewareHandler R6 class definition
new_error
Create response instance
parse_params
Parse the params passed by the request
post
Function to add POST-binding middleware
process_test_request
Initialize process of test request
put
Function to add PUT-binding middleware
RawTestRequest
Generate request for testing purposes
Request
Request class
Response
Response class
serve_it
Start serving the jug instance
serve_static_files
Middleware to serve static files
simple_error_handler
An error handler middleware which returns a error description...
simple_error_handler_json
An error handler middleware which returns a error description...
stop_daemon
Stop daemonized server
use
Function to add request method insensitive middleware
ws
Function to add websocket handling middleware

Files in this package

jug
jug/inst
jug/inst/html_templates
jug/inst/html_templates/404.html
jug/inst/html_templates/500.html
jug/inst/doc
jug/inst/doc/jug.html
jug/inst/doc/jug.Rmd
jug/inst/doc/jug.R
jug/tests
jug/tests/testthat.R
jug/tests/testthat
jug/tests/testthat/test_func_decoration.R
jug/tests/testthat/test_get.R
jug/tests/testthat/index.html
jug/tests/testthat/test_post.R
jug/tests/testthat/test_static_file_server.R
jug/tests/testthat/test_collector.R
jug/tests/testthat/test_handler_adding.R
jug/tests/testthat/test_cors.R
jug/tests/testthat/test_multiple_mw_function.R
jug/tests/testthat/test_websocket_conn.R
jug/tests/testthat/test_req.R
jug/tests/testthat/test_error_handling.R
jug/tests/testthat/test_helpers.R
jug/tests/testthat/helper_collected_mw2.R
jug/NAMESPACE
jug/R
jug/R/request.R
jug/R/helpers.R
jug/R/test_request.R
jug/R/middleware_static.R
jug/R/middleware_collector.R
jug/R/middleware_error.R
jug/R/middleware_core.R
jug/R/middleware_cors.R
jug/R/error.R
jug/R/decorators.R
jug/R/jug.R
jug/R/response.R
jug/vignettes
jug/vignettes/jug.Rmd
jug/MD5
jug/build
jug/build/vignette.rds
jug/DESCRIPTION
jug/man
jug/man/new_error.Rd
jug/man/stop_daemon.Rd
jug/man/Error.Rd
jug/man/include.Rd
jug/man/process_test_request.Rd
jug/man/MiddlewareHandler.Rd
jug/man/simple_error_handler.Rd
jug/man/Response.Rd
jug/man/decorate.Rd
jug/man/collector.Rd
jug/man/post.Rd
jug/man/match_path.Rd
jug/man/parse_params.Rd
jug/man/Request.Rd
jug/man/serve_it.Rd
jug/man/use.Rd
jug/man/serve_static_files.Rd
jug/man/ws.Rd
jug/man/put.Rd
jug/man/delete.Rd
jug/man/cors.Rd
jug/man/simple_error_handler_json.Rd
jug/man/add_middleware.Rd
jug/man/get.Rd
jug/man/Middleware.Rd
jug/man/RawTestRequest.Rd
jug/man/Jug.Rd
jug/LICENSE