Gatling provides Request Body Processor processRequestBody()
to process the request body before it sent to over wire.
There are two built-in processors available but one can have their own custom processor to modify the body content before sending it to server.
Below code demonstrates an use case where I am using a text file to fetch the request body as .body(ElFileBody("payload.txt"))
and modifying the
_placeholder
with some computer name
before sending.