gatling-java-api
gatling-java-api copied to clipboard
How to add headers in a request?
Hi, I would like to test the repo and I would like to know how to add http headers in a request.
You can add http headers with RequestBuilderWrapper#header(String, String) and RequestBuilderWrapper#headers(Map)
Sample example with HTTP GET method : http("request_1").get("/hasHeader").header("testHeader", "value")