@raise_event
def send_response(resource, response):
 if isinstance(response, Response):
  return response
 else:
  return _prepare_response(resource, *(response if response else [None]))

@ raise_event def send_response ( resource , response ) : if isinstance ( response , Response ) : return response else : return _prepare_response ( resource , * ( response if response else [ None ] ) )
prepares the response for the client .