<s> from __future__ import absolute_import <EOL> from django . core . urlresolvers import reverse <EOL> from django . http import HttpResponse , StreamingHttpResponse <EOL> from . import urlconf_inner <EOL> class ChangeURLconfMiddleware ( object ) : <EOL> def process_request ( self , request ) : <EOL> request . urlconf = urlconf_inner . __name__ <EOL> class NullChangeURLconfMiddleware ( object ) : <EOL> def process_request ( self , request ) : <EOL> request . urlconf = None <EOL> class ReverseInnerInResponseMiddleware ( object ) : <EOL> def process_response ( self , * args , ** kwargs ) : <EOL> return HttpResponse ( reverse ( '<STR_LIT>' ) ) <EOL> class ReverseOuterInResponseMiddleware ( object ) : <EOL> def process_response ( self , * args , ** kwargs ) : <EOL> return HttpResponse ( reverse ( '<STR_LIT>' ) ) <EOL> class ReverseInnerInStreaming ( object ) : <EOL> def process_view ( self , * args , ** kwargs ) : <EOL> def stream ( ) : <EOL> yield reverse ( '<STR_LIT>' ) <EOL> return StreamingHttpResponse ( stream ( ) ) <EOL> class ReverseOuterInStreaming ( object ) : <EOL> def process_view ( self , * args , ** kwargs ) : <EOL> def stream ( ) : <EOL> yield reverse ( '<STR_LIT>' ) <EOL> return StreamingHttpResponse ( stream ( ) ) </s>
