Ejemplo n.º 1
0
    def handle(self, context):
        """
        Dispatch the request to every HttpPlugin
        """

        for instance in HttpPlugin.all(self.context):
            try:
                output = instance.handle(context)
            # pylint: disable=W0703
            except Exception as e:
                return [self.respond_error(context, e)]
            if output is not None:
                return output
        return context.fallthrough(self.invalid)
Ejemplo n.º 2
0
    def handle(self, context):
        """
        Dispatch the request to every HttpPlugin
        """

        for instance in HttpPlugin.all(self.context):
            try:
                output = instance.handle(context)
            # pylint: disable=W0703
            except Exception as e:
                return [self.respond_error(context, e)]
            if output is not None:
                return output
        return context.fallthrough(self.invalid)
Ejemplo n.º 3
0
    def handle(self, http_context):
        """
        Dispatch the request to every HttpPlugin
        """

        if http_context.env['SSL_CLIENT_AUTH_FORCE'] and not http_context.env['SSL_CLIENT_VALID']:
            return http_context.fallthrough(self.denied)

        for instance in HttpPlugin.all(self.context):
            try:
                output = instance.handle(http_context)
            # pylint: disable=W0703
            except Exception as e:
                return [self.respond_error(http_context, e)]
            if output is not None:
                return output
        return http_context.fallthrough(self.invalid)