Learn R Programming

⚠️There's a newer version (0.1.7) of this package.Take me there.

jug (version 0.1.2)

Create a Simple Web API for your R Functions

Description

A set of convenience functions to build simple APIs.

Copy Link

Version

Install

install.packages('jug')

Monthly Downloads

35

Version

0.1.2

License

MIT + file LICENSE

Maintainer

Bart Smeets

Last Published

May 10th, 2016

Functions in jug (0.1.2)

process_test_request

Initialize process of test request
jug

New jug instance
delete

Function to add DELETE-binding middleware
RawTestRequest

Generate request for testing purposes
post

Function to add POST-binding middleware
put

Function to add PUT-binding middleware
add_middleware

Internal function to add middleware
Request

Request class
Middleware

Middleware class
MiddlewareHandler

MiddlewareHandler R6 class definition
new_error

Create response instance
parse_query

Helper function to deparse query params
collector

Collector function for middlewares
get

Function to add GET-binding middleware
Response

Response class
decorate

Convenience function to decorate existing functions
parse_post_data

Parse the post data
match_path

Helper function to extract regex named capture groups from string
simple_error_handler

An error handler middleware
stop_daemon

Stop daemonized server
use

Function to add request method insensitive middleware
Error

Response class
ws

Function to add websocket handling middleware
serve_static_files

Middleware to serve static files
serve_it

Start serving the jug instance
include

Include elsewhere constructed middleware with primary jug instance