(wsgi_app)
return wsgi_app(environ, controller.start_response)
Forward the request to a WSGI application. Returns its response.

    .. code-block:: python

        return forward(FileApp('filename'))
Forward the request to a WSGI application. Returns its response.
Forward the request to a WSGI application . Returns its response .
def forward(wsgi_app):
    """Forward the request to a WSGI application. Returns its response.

    .. code-block:: python

        return forward(FileApp('filename'))

    """
    environ = pylons.request.environ
    controller = environ.get('pylons.controller')
    if not controller or not hasattr(controller, 'start_response'):
        raise RuntimeError("Unable to forward: environ['pylons.controller'] "
                           "is not a valid Pylons controller")
    return wsgi_app(environ, controller.start_response)
def forward ( wsgi_app ) : environ = pylons . request . environ controller = environ . get ( 'pylons.controller' ) if not controller or not hasattr ( controller , 'start_response' ) : raise RuntimeError ( "Unable to forward: environ['pylons.controller'] " "is not a valid Pylons controller" ) return wsgi_app ( environ , controller . start_response )