excilys/gatling — pull request #564 by skuenzli (2012-06-15 04:22:51+00:00)
Title: Feature: log more request info

Provide ability for users to extract information from http Request and Response instances used in the simulation and append the information to the request's line in the simulation log.

The extra info extraction functions must have the form:
```scala
(Request => List[String])
(Response => List[String])
```

The extraction functions may be provided to the http configuration instance(s) used in the simulation.

An simple usage of this feature would be to extract the url from the request and the status code from the response:
```scala
val httpConf = httpConfig.baseURL(urlBase)
.requestInfoExtractor((request: Request) => {
List[String](request.getRawUrl)
})
.responseInfoExtractor((response: Response) => {
List[String](response.getStatusCode.toString())
})
```

Implements excilys/gatling/issues/446