gatling-java-api icon indicating copy to clipboard operation
gatling-java-api copied to clipboard

How to add headers in a request?

Open jabrena opened this issue 6 years ago • 1 comments

Hi, I would like to test the repo and I would like to know how to add http headers in a request.

jabrena avatar Feb 26 '19 15:02 jabrena

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")

vgalloy avatar May 16 '19 20:05 vgalloy