Ejemplo n.º 1
0
    def handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs):
        # don't attempt to check if url is valid by accessing content
        kwargs['no_timegate_check'] = True

        # test if request specifies a containerized browser
        if wb_url.mod.startswith('$br:'):
            return self.handle_browser_embed(wb_url, kwargs)

        return RewriterApp.handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs)
Ejemplo n.º 2
0
    def handle_custom_response(self, environ, wb_url, full_prefix, host_prefix,
                               kwargs):
        # test if request specifies a containerized browser
        if wb_url.mod.startswith('$br:'):
            return self.handle_browser_embed(wb_url, kwargs)

        return RewriterApp.handle_custom_response(self, environ, wb_url,
                                                  full_prefix, host_prefix,
                                                  kwargs)
Ejemplo n.º 3
0
    def handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs):
        # test if request specifies a containerized browser
        if wb_url.mod.startswith('$br:'):
            return self.handle_browser_embed(wb_url, kwargs)

        return RewriterApp.handle_custom_response(self, environ, wb_url, full_prefix, host_prefix, kwargs)