'Decorate a function as responder that accepts the request as first
argument.  This works like the :func:`responder` decorator but the
function is passed the request object as first argument and the
request object will be closed automatically::
@Request.application
def my_wsgi_app(request):
return Response(\'Hello World!\')
:param f: the WSGI callable to decorate
:return: a new WSGI callable'

@classmethod
def application(cls, f):

    def application(*args):
        request = cls(args[(-2)])
        with request:
            return f(*(args[:(-2)] + (request,)))(*args[(-2):])
    return update_wrapper(application, f)
