Part of bzrlib.transport.http.wsgi View In Hierarchy
Different servers can invoke a SmartWSGIApp in different ways. This middleware allows an adminstrator to configure how to the SmartWSGIApp will determine what path it should be serving for a given request for many common situations.
For example, a request for "/some/prefix/repo/branch/.bzr/smart" received by
a typical Apache and mod_fastcgi configuration will set REQUEST_URI
to
"/some/prefix/repo/branch/.bzr/smart". A RelpathSetter with
prefix="/some/prefix/" and path_var="REQUEST_URI" will set that request's
'bzrlib.relpath' variable to "repo/branch".
Parameters | app | WSGI app to wrap, e.g. a SmartWSGIApp instance. |
path_var | the variable in the WSGI environ to calculate the 'bzrlib.relpath' variable from. | |
prefix | a prefix to strip from the variable specified in path_var before setting 'bzrlib.relpath'. |