Add an HTTP layer to a tower. This layer will be called before the 'shiny' app's httpHandler.
add_http_layer(tower, layer)
The tower with the added layer
A tower
A function that takes a request and returns either
a response. A layer can short circuit by returning a response
directly or call the next layer will req$NEXT(req)
which
will call the next layer in the middleware.