Parsing mulitpart/mixed HTTP response


I’m looking for design patterns / help parsing multipart/mixed HTTP responses from my web service under test. I did a good deal of searching and couldn’t find any documentation on how to work with multipart/mixed HTTP responses. I found plenty of documentation on creating multipart requests which is awesome, but I need to work with a multipart/mixed response.

At the moment I’ve written a custom multipartMixedResponseTransformer that will blindly grab the first part and create a new Response object that only contains the first part:


I’m using Gatling 3.31, which I forgot to mention in the original post.

Here is what I have so far. I’m posting in case anyone else is looking for a similar solution, or if it inspires the Gatling team to consider adding some transformers to work with multipart/mixed HTTP responses: