config.body can be a function