kikitux
01/25/2018, 7:09 PMval curl = CUrl("<https://checkpoint-api.hashicorp.com/v1/check/${product}>")
var contentType: List<String> = emptyList()
var body: List<String> = emptyList()
curl.header += {
if ( it.contains("Content-Type:") ){
contentType += it.removePrefix("Content-Type: ")
}
}
curl.body += {
body += it
}