I'm submitting a ...
What is the current behavior?
Rest-assured request/response attachments are in the end of the body:

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
import io.qameta.allure.restassured.AllureRestAssured;
import io.restassured.RestAssured;
import org.testng.annotations.Test;
import static org.assertj.core.api.Assertions.assertThat;
public class T {
@Test public static void testa() {
RestAssured.replaceFiltersWith(new AllureRestAssured());
assertThat(1).isGreaterThan(0);
RestAssured.given().get("https://google.com");
assertThat(5).isGreaterThan(3);
}
}
What is the expected behavior?
Rest-assured request/response attachments are in order according to test events:

What is the motivation / use case for changing the behavior?
Make the report more straightforward
Please tell us about your environment:
| Allure version |
2.13.2 |
| Test framework |
testng@7.1.0 |
| Allure integration |
allure-testng@2.13.2 |
| Allure integration |
allure-assertj@2.13.2 |
| Allure integration |
allure-rest-assured@2.13.2 |
| Generate report using |
allure-commandline@2.13.2 |
Other information
N/A
I'm submitting a ...
What is the current behavior?
Rest-assured request/response attachments are in the end of the body:

If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem
What is the expected behavior?
Rest-assured request/response attachments are in order according to test events:

What is the motivation / use case for changing the behavior?
Make the report more straightforward
Please tell us about your environment:
Other information
N/A