def response_hook(optional=True):
    def _hook(hook):
        return APIHooks().add_response_hook(hook, optional)
    return _hook
Decorator for response hook functions.
dataset/ETHPy150Open softlayer/jumpgate/jumpgate/common/hooks/__init__.py/response_hook