Return a filter function for http-requests for get,post,put,delete - works well with routes-router