jug is a small web development framework for R which relies heavily upon the httpuv
package. It’s main focus is to make building APIs for your code as easy as possible.
jug is not supposed to be either an especially performant nor an uber stable web framework. Other tools (and languages) might be more suited for that. It focuses on maximizing the ease with which you can create web APIs for your R code. However, the flexibility of jug means that, in theory, you could built an extensive web framework with it.
Check out http://bart6114.github.io/jug/articles/jug.html for the vignette documentation.
Plugins:
- Introduction of events and event listeners (check e.g. the
on
function) - Introduction of the
logger
, a predefined event listener based on futile.logger - Enabled ByteCompile on installation
- Adjustment to
serve_static_files
: addpdf
to binary types
- Adjustment to
serve_static_files
: removed link betweenpath
and file served
- Fixed CORS preflight request bug (issue #15)
- Fixed masking of base::get
- Ability to specify
auto-unbox
value for json responses - Added
strict_params
argument todecorate
- Added basic authentication functionality through
auth_basic
- Fixed bug where missing content type would not auto-parse the query string
- Refactor request header processing
- Added CORS functionality
- Possible to specify
method
foruse
middleware - Refactoring of request param parsing
- New error handling middleware (JSON response)
- Additional / refined testing