Added check if function exists for httprequest
Generic callback functions from params