powered by
Etag
Middleware that add an Etag header to the response
mw_etag(algorithm = "crc32")
Checksum algorithm to use. Only "crc32" is implemented currently.
"crc32"
Handler function.
Other middleware: mw_json(), mw_log(), mw_multipart(), mw_raw(), mw_static(), mw_text(), mw_urlencoded()
mw_json()
mw_log()
mw_multipart()
mw_raw()
mw_static()
mw_text()
mw_urlencoded()
# NOT RUN { app <- new_app() app$use(mw_etag()) app # }
Run the code above in your browser using DataLab