Print all headers

Hi,

Is there a way I can print out all the header values? I read the documentation and the cheat sheet, but I still can’t figure it out. I am very new to scala and Gatling so I may be missing something really obvious.

`
exec(
http(“Get Events”)
.get("/events")
.headers(headers)
.check(header(“Content-Type”).is(“a”))
)

`

I know how to check for a specific header, but I don’t know what all the headers are.

Thanks.

What do you mean? You want to log which headers were exactly sent over the wire?
If so, headers were only partially logged in RC5 (only those you provided, without those underlying HTTP engine sets). This is fixed in upcoming RC6, and is already available in snapshots.