How to achieve parallel https requests within same scenario?

I am trying to figure out a way where I can have multiple http requests execution concurrently within the same scenario. For example:in the following script, I wan to execute request 0 and request 1 to be executed in parallel for every user.


package computerdatabase

import io.gatling.core.Predef._
import io.gatling.http.Predef._

class Vik123 extends Simulation {

val httpProtocol = http

.acceptEncodingHeader(""“gzip, deflate”"")
.userAgentHeader(""“Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:29.0) Gecko/20100101 Firefox/29.0"”")

val headers_0 = Map(""“Accept”"" → “”“text/html,application/xhtml+xml,application/xml;q=0.9,/;q=0.8"”")

val scn = scenario(“Scen1”)


This is exactly what .resources does, take a look to

You just need to create a Seq[HttpRequestBuilder], for example