mw_etag: Middleware that add an 'Etag' header to the response

Description Usage Arguments Value See Also Examples

View source: R/mw-etag.R

Description

Middleware that add an Etag header to the response

Usage

1
mw_etag(algorithm = "crc32")

Arguments

algorithm

Checksum algorithm to use. Only "crc32" is implemented currently.

Value

Handler function.

See Also

Other middleware: mw_json(), mw_log(), mw_multipart(), mw_raw(), mw_static(), mw_text(), mw_urlencoded()

Examples

1
2
3
app <- new_app()
app$use(mw_etag())
app

presser documentation built on July 1, 2020, 5:49 p.m.