RingoJS

Module middleware/etag

Middleware for conditional HTTP GET request based on response body message digests.

The response body must implement a digest() method for this middleware to work.

Functions


middleware (next, app)

Middleware for conditional HTTP GET request based on response body message digests.

Parameters

Function next

the wrapped middleware chain

Object app

the Stick Application object

Returns

Function

a JSGI middleware function