and i am using it like this: (constructive feedba...
# kotlin-native
k
and i am using it like this: (constructive feedback welcome)
Copy code
val 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
    }