Adapt http decorator to new format