# -*- coding: utf-8 -*-

from request_provider.signals import request_accessor


class RequestProviderError(Exception):
    pass

class RequestProvider(object):

    def __init__(self):
        self._request = None
        request_accessor.connect(self)

    def process_request(self, request):
        self._request = request
        return None

    def __call__(self,**kwargs):
        return self._request


