class Sinatra::Base

def after(path = nil, &block)

response.
context as route handlers and may access/modify the request and
Define an after filter; runs after all requests within the same
def after(path = nil, &block)
  add_filter(:after, path, &block)
end