Add filter function for proxy responses.