All functions

add_listener

Internal function to add listeners

add_middleware

Internal function to add middleware

auth_basic

Basic authentication 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 instance

jug

New jug instance

Listener

Middleware class

logger

Basic logger

match_path

Helper function to extract regex named capture groups from string

Middleware

Middleware class

new_error

Create response instance

on

Function to add an event listener

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

RequestHandler

RequestHandler R6 class definition

Response

Response class

serve_it

Start serving the jug instance

serve_static_files

Middleware to serve static files

simple_error_handler_json

An error handler middleware which returns a error description in JSON format

simple_error_handler

An error handler middleware which returns a error description in HTML format

stop_daemon

Stop daemonized server

use

Function to add request method insensitive middleware

ws

Function to add websocket handling middleware