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

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

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

