server side request handling now works with entities and headers