         case .stopIterationNoBuffer:
           return [kEnvoyFilterDataStatusStopIterationNoBuffer, data]
         case .resumeIteration(let headers, let data):
-          return [kEnvoyFilterDataStatusResumeIteration, headers?.headers as Any, data]
+          return [kEnvoyFilterDataStatusResumeIteration, data, headers?.headers as Any]
         }
       }
 

        case .stopIterationNoBuffer:
          return [kEnvoyFilterDataStatusStopIterationNoBuffer, data]
        case .resumeIteration(let headers, let data):
          return [kEnvoyFilterDataStatusResumeIteration, headers?.headers as Any, data]
        }
      }


        case .resumeIteration(let headers, let data, let trailers):
          return [
            kEnvoyFilterTrailersStatusResumeIteration,
            trailers.headers,
            headers?.headers as Any,
            data as Any,
          ]
        }
      }
