in src/main/scala/com/gu/fastly/api/FastlyApiClient.scala [41:52]
def vclUpdate(version: Int, vcl: Map[String, String]): List[Future[Response]] = {
vcl.map({
case (fileName, fileAsString) =>
val apiUrl = s"$fastlyApiUrl/service/$serviceId/version/$version/vcl/$fileName"
AsyncHttpExecutor.execute(
apiUrl,
PUT,
headers = commonHeaders ++ Map("Content-Type" -> "application/x-www-form-urlencoded"),
parameters = Map("content" -> fileAsString, "name" -> fileName)
)
}).toList
}