before, after, content_type and headers